diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8f932f87c9b..8482677017d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -190,7 +190,6 @@ Documentation/guides/automounter.rst raiden00@railab.me Documentation/guides/building_nuttx_with_app_out_of_src_tree.rst ludovicvanasse@gmail.com Documentation/guides/building_uclibcpp.rst ludovicvanasse@gmail.com Documentation/guides/changing_systemclockconfig.rst ludovicvanasse@gmail.com devel@sumpfralle.de -Documentation/guides/citests.rst michallenc@seznam.cz devel@sumpfralle.de ludovicvanasse@gmail.com 59230071+hartmannathan@users.noreply.github.com Documentation/guides/cpp_cmake.rst flavio.alves@phiinnovations.com xiaoxiang@xiaomi.com longdh.2017.vn@gmail.com raiden00@railab.me 59230071+hartmannathan@users.noreply.github.com Documentation/guides/custom_app_directories.rst ludovicvanasse@gmail.com Documentation/guides/customapps.rst 56726697+TimJTi@users.noreply.github.com acassis@gmail.com raiden00@railab.me 31182898+dlstjq7685@users.noreply.github.com diff --git a/Documentation/testing/citests.rst b/Documentation/testing/citests.rst deleted file mode 100644 index f6c7bc47c47..00000000000 --- a/Documentation/testing/citests.rst +++ /dev/null @@ -1,59 +0,0 @@ -.. include:: /substitutions.rst -.. _citests: - -====================================== -Running CI Runtime Test Suites Locally -====================================== - -NuttX automatically runs continuous integration (CI) tests on -`simulator `__ -and QEMU targets when a new pull request is submitted. To avoid the tests failing -you can also run them locally on your computer prior to submitting a new pull request. -This page describes the step by step manual to do so. - -Configuring NuttX -================= - -NuttX has a simulator target that allows the user to run NuttX as a regular -program on a computer. The simulator target with CI test is configured and -compiled followingly. - - .. code-block:: console - - $ cd nuttx - $ ./tools/configure.sh sim:citest - $ make - -You should see NuttX shell with built in test applications. Now you can exit -the simulator. - - .. code-block:: console - - nsh> poweroff - $ - $ # we're back at the Linux prompt. - - -Running CI Tests with ``tools/ci/testrun`` -========================================== - -Running CI tests locally requires Minicom and Python 3.6 or newer to be -installed on the system. Other requirements can be installed with following -set of commands. - - .. code-block:: console - - $ cd tools/ci/testrun/env - $ pip3 install -r requirements.txt - $ cd .. - $ cd script - -Now you have everything prepared to run CI tests. The tests themselves are run -by following command. - - .. code-block:: console - - $ python3 -m pytest -m 'common or sim' ./ -B sim -P -L -R sim -C --json=/pytest.json - -Where nuttx-path is an absolute path to NuttX root directory and log-path is -a user defined directory to which tests log are saved. diff --git a/Documentation/testing/index.rst b/Documentation/testing/index.rst index 540448039e5..d2fddad5cca 100644 --- a/Documentation/testing/index.rst +++ b/Documentation/testing/index.rst @@ -7,9 +7,12 @@ This page contains information related to NuttX testing. For information about included NuttX testing applications, please see :doc:`/applications/testing/index`. +.. note:: + + NuttX CI runtime test cases use :doc:`NTFC `. + .. toctree:: nuttx-ci.rst - citests.rst ntfc.rst nxdart.rst diff --git a/Documentation/testing/ntfc.rst b/Documentation/testing/ntfc.rst index c593bb3e11d..a580b5ed6c7 100644 --- a/Documentation/testing/ntfc.rst +++ b/Documentation/testing/ntfc.rst @@ -14,7 +14,7 @@ The framework and official test cases are available at: Detailed documentation is available in the framework repository. -CI migration to NTFC is in progress. Configurations currently using NTFC: +CI runtime test cases use NTFC. Configurations with an NTFC runner include: - :doc:`risc-v/qemu-rv `: ``rv-virt/citest64`` - :doc:`risc-v/qemu-rv `: ``rv-virt/citest`` diff --git a/tools/ci/cirun.sh b/tools/ci/cirun.sh deleted file mode 100755 index e4f170acb59..00000000000 --- a/tools/ci/cirun.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash -############################################################################ -# tools/ci/cirun.sh -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ - -set -e -set -o xtrace - -WD=$(cd $(dirname $0) && pwd) -WORKSPACE=$(cd $WD/../../../../../../../ && pwd -P) -nuttx=$WORKSPACE/nuttx -logs=${WD}/logs -BOARD=`echo $WD |awk -F '/' '{print $(NF-2)}'` - -echo $WD -echo $WORKSPACE - -config=$(basename $WD) -if [ "$BOARD" == "sim" ]; then - target="sim" - mark="common or ${BOARD}" -else - if [ "${config:$((-2))}" == "64" ]; then - BOARD="${BOARD}64" - fi - if [ "$BOARD" == "rv-virt" ]; then - target="qemu" - mark="qemu or rv_virt" - else - target="qemu" - mark=$target - fi -fi - -core=$target -image=`find ${nuttx} -type f -name 'nuttx'` -path=${image%/*} -cd ${nuttx}/tools/ci/testrun/script -python3 -m pytest -m "${mark}" ./ -B ${BOARD} -P ${path} -L ${logs}/${BOARD}/${core} -R ${target} -C --json=${logs}/${BOARD}/${core}/pytest.json -ret="$?" - -#clean -find ${nuttx}/tools/ci/testrun -name '__pycache__' |xargs rm -rf -find ${nuttx}/tools/ci/testrun -name '.pytest_cache' |xargs rm -rf -rm -rf ${logs} -rm -f ${nuttx}/fatfs.img - - -echo $ret -exit $ret diff --git a/tools/ci/testrun/README.md b/tools/ci/testrun/README.md deleted file mode 100644 index baf14ba6645..00000000000 --- a/tools/ci/testrun/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# Requirements -- Python 3.6 or above -- pexpect + minicom -- pytest -```bash -sudo apt-get install minicom -cd env -pip3 install -r requirements.txt -``` -# Pytest Original Parameter usage refer to help -# Customized Parameters -```bash -pytest - -D specify device, for example: /dev/ttyUSB0 - -B specify board, for example: sim,best1600_ep - -P specify nuttx path - -F specify filesystem, for example: /data - -L specify log path - -O specify ota version, for example: VELA-2.0 - -S enable sudo as run sim - -C enable pre-checkin run - -U specify core: ap, audio, cp, sensor, tee - -M serial or minicom - -R specify target type: target|sim|qemu|module - -``` -# Example -```bash -cd script -# testsuite -pytest test_[testsuite].py -D /dev/ttyUSBx -B -L -F -P -R -# mark -pytest -m ./ -D /dev/ttyUSBx -B -L -F -P -R --json=/pytest.json -# sim -pytest -m sim ./ -B sim -P -L -F -P -R --json=/pytest.json -# stress test -pytest -m miwear ./ -B miwear -P -L -F --json=/pytest.json --count=100 --repeat-scope=session -``` -# Generate Report -```bash -cd utils/report -python3 report_gen.py -l -b -``` diff --git a/tools/ci/testrun/env/requirements.txt b/tools/ci/testrun/env/requirements.txt deleted file mode 100644 index 2cf477de497..00000000000 --- a/tools/ci/testrun/env/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -pexpect==4.8.0 -pytest==6.2.5 -pytest-repeat==0.9.1 -pytest-json==0.4.0 -pytest-ordering==0.6 -pyserial==3.5 diff --git a/tools/ci/testrun/pytest.ini b/tools/ci/testrun/pytest.ini deleted file mode 100644 index 11b9bb8ff39..00000000000 --- a/tools/ci/testrun/pytest.ini +++ /dev/null @@ -1,18 +0,0 @@ -# pytest.ini -[pytest] -# -p : Disable warning capture -p no:warnings -# -s : Capture print of the script -# -v : --verbose -# --html=../report/reports.html --self-contained-html -# --alluredir=../report/allure -# --count=5 --repeat-scope=session -# --capture=sys -# --json=pytest_ota_m33.json -addopts = -sv --capture=sys - -markers = - common : 'marks tests as common' - sim : 'marks tests as simulator' - qemu : 'marks tests as qemu' - rv_virt : 'marks tests as rv-virt' - disable_autouse : 'disable autouse' diff --git a/tools/ci/testrun/script/__init__.py b/tools/ci/testrun/script/__init__.py deleted file mode 100644 index 40a7968deda..00000000000 --- a/tools/ci/testrun/script/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3 -############################################################################ -# tools/ci/testrun/script/__init__.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 diff --git a/tools/ci/testrun/script/conftest.py b/tools/ci/testrun/script/conftest.py deleted file mode 100644 index 1a5437c09d3..00000000000 --- a/tools/ci/testrun/script/conftest.py +++ /dev/null @@ -1,156 +0,0 @@ -#!/usr/bin/env python3 -############################################################################ -# tools/ci/testrun/script/conftest.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 - -import pytest -from utils.common import connectNuttx - - -def pytest_addoption(parser): - parser.addoption( - "-D", - action="store", - default=None, - help="specify device, for example: /dev/ttyUSB0", - ) - parser.addoption( - "-B", action="store", default="sim", help="specify board, for example: sim" - ) - parser.addoption( - "-P", - action="store", - default=None, - help="specify vela path, for example: /home/root/vela", - ) - parser.addoption( - "-F", - action="store", - default="/data", - help="specify filesystem, for example: /data or /tmp", - ) - parser.addoption( - "-L", - action="store", - default=None, - help="specify log path, for example: /home/root/vela/logs", - ) - parser.addoption("-O", action="store", default=None, help="specify ota version") - parser.addoption( - "-S", action="store_true", default=False, help="enable sudo as run sim" - ) - parser.addoption( - "-C", action="store_true", default=False, help="enable pre-checkin run" - ) - parser.addoption( - "-U", - action="store", - default=None, - help="specify core: ap, audio, cp, sensor, tee", - ) - parser.addoption( - "-M", - action="store", - default="minicom", - help="serial open method:serial or minicom", - ) - parser.addoption( - "-R", - action="store", - default="sim", - help="specify the target type: target|qemu|sim|module, default is sim", - ) - - -@pytest.fixture(scope="session") -def get_option(pytestconfig): - dev = pytestconfig.getoption("-D") - board = pytestconfig.getoption("-B") - vela_path = pytestconfig.getoption("-P") - fs = pytestconfig.getoption("-F") - log_path = pytestconfig.getoption("-L") - ota_version = pytestconfig.getoption("-O") - sudo = pytestconfig.getoption("-S") - ci = pytestconfig.getoption("-C") - core = pytestconfig.getoption("-U") - method = pytestconfig.getoption("-M") - target = pytestconfig.getoption("-R") - yield dev, board, vela_path, fs, log_path, ota_version, core, sudo, ci, method, target - - -@pytest.fixture(scope="session", name="p") -def connect_nuttx_session(get_option): - ( - dev, - board, - vela_path, - fs, - log_path, - ota_version, - core, - sudo, - ci, - method, - target, - ) = get_option - print(get_option) - p = connectNuttx( - board, vela_path, dev, log_path, fs, ota_version, core, sudo, ci, method, target - ) - p.setup() - yield p - p.cleanup() - - -@pytest.fixture(scope="function", autouse=True) -def do_free_ps(request, p): - if "disable_autouse" in request.keywords: - yield - else: - yield - p.sendCommand("free", "total", flag=">") - p.sendCommand("ps", "PID", flag=">") - p.sendCommand("ls %s" % p.fs, flag=">") - - -@pytest.fixture(scope="function", name="pp") -def connect_nuttx_function(get_option): - ( - dev, - board, - vela_path, - fs, - log_path, - ota_version, - core, - sudo, - ci, - method, - target, - ) = get_option - print(get_option) - p = connectNuttx( - board, vela_path, dev, log_path, fs, ota_version, core, sudo, ci, method, target - ) - p.setup() - yield p - # p.cleanup() diff --git a/tools/ci/testrun/script/test_example/__init__.py b/tools/ci/testrun/script/test_example/__init__.py deleted file mode 100644 index 639ad6b8e42..00000000000 --- a/tools/ci/testrun/script/test_example/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3 -############################################################################ -# tools/ci/testrun/script/text_example/__init__.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 diff --git a/tools/ci/testrun/script/test_example/test_example.py b/tools/ci/testrun/script/test_example/test_example.py deleted file mode 100644 index a8ba7c28f3e..00000000000 --- a/tools/ci/testrun/script/test_example/test_example.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env python3 -############################################################################ -# tools/ci/testrun/script/text_example/test_example.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 -import pytest - -pytestmark = [pytest.mark.common, pytest.mark.qemu] - - -def test_hello(p): - ret = p.sendCommand("hello", "Hello, World!!") - assert ret == 0 - - -def test_helloxx(p): - ret = p.sendCommand("helloxx", "Hello, World!!") - assert ret == 0 - - -def test_pipe(p): - ret = p.sendCommand("pipe", "redirect_reader: Returning success", timeout=60) - assert ret == 0 - - -def test_popen(p): - ret = p.sendCommand("popen", "Calling pclose()") - assert ret == 0 - - -def test_usrsocktest(p): - ret = p.sendCommand("usrsocktest", "FAILED:0", timeout=60) - assert ret == 0 diff --git a/tools/ci/testrun/script/test_framework/__init__.py b/tools/ci/testrun/script/test_framework/__init__.py deleted file mode 100644 index 3bccccefb9d..00000000000 --- a/tools/ci/testrun/script/test_framework/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/python3 -############################################################################ -# tools/ci/testrun/script/test_framework/__init__.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 diff --git a/tools/ci/testrun/script/test_framework/test_cmocka.py b/tools/ci/testrun/script/test_framework/test_cmocka.py deleted file mode 100644 index 5b66faf8310..00000000000 --- a/tools/ci/testrun/script/test_framework/test_cmocka.py +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/python3 -############################################################################ -# tools/ci/testrun/script/test_framework/test_cmocka.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 - -import os - -import pytest - -pytestmark = [pytest.mark.common, pytest.mark.rv_virt] - -cmocka_list_start = "cmocka_list_start" -cmocka_list_end = "cmocka_list_end" -cmocka_test_start = "cmocka_test_start" -cmocka_test_end = "cmocka_test_end" - - -@pytest.mark.run(order=1) -def test_cmocka(p): - if p.board == "sim": - os.mkdir("./test") - ret = p.sendCommand("mount -t hostfs -o fs=./test /data") - if p.board == "rv-virt": - ret = p.sendCommand("mount -t vfat /dev/virtblk0 /data") - - p.sendCommand(f"echo {cmocka_list_start}") - p.sendCommand("cmocka --list", "Cmocka Test Completed") - p.sendCommand(f"echo {cmocka_list_end}") - - p.sendCommand(f"echo {cmocka_test_start}") - ret = p.sendCommand( - "cmocka --skip drivertest_pm|drivertest_posix_timer|drivertest_block*|" - "test_playback.*|test_interaction.*|test_stress.*|test_capture.*", - "Cmocka Test Completed", - timeout=1200, - ) - p.sendCommand(f"echo {cmocka_test_end}") - - if p.board == "sim": - os.rmdir("./test") - - assert ret == 0 diff --git a/tools/ci/testrun/script/test_libuv/__init__.py b/tools/ci/testrun/script/test_libuv/__init__.py deleted file mode 100644 index 17769f505d0..00000000000 --- a/tools/ci/testrun/script/test_libuv/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/python3 -############################################################################ -# tools/ci/testrun/script/test_libuv/__init__.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 diff --git a/tools/ci/testrun/script/test_libuv/test_libuv.py b/tools/ci/testrun/script/test_libuv/test_libuv.py deleted file mode 100644 index 61aae062d6b..00000000000 --- a/tools/ci/testrun/script/test_libuv/test_libuv.py +++ /dev/null @@ -1,448 +0,0 @@ -#!/usr/bin/python3 -############################################################################ -# tools/ci/testrun/script/test_libuv/test_libuv.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 - -import pytest - - -class TestLibuv: - pytestmark = [pytest.mark.sim] - - def test_test_macros(self, p): - ret = p.sendCommand( - "uv_run_tests test_macros", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_close_order(self, p): - ret = p.sendCommand( - "uv_run_tests close_order", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_run_once(self, p): - ret = p.sendCommand( - "uv_run_tests run_once", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_run_nowait(self, p): - ret = p.sendCommand( - "uv_run_tests run_nowait", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_loop_alive(self, p): - ret = p.sendCommand( - "uv_run_tests loop_alive", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_loop_close(self, p): - ret = p.sendCommand( - "uv_run_tests loop_close", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_loop_instant_close(self, p): - ret = p.sendCommand( - "uv_run_tests loop_instant_close", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_loop_stop(self, p): - ret = p.sendCommand( - "uv_run_tests loop_stop", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_loop_backend_timeout(self, p): - ret = p.sendCommand( - "uv_run_tests loop_backend_timeout", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_default_loop_close(self, p): - ret = p.sendCommand( - "uv_run_tests default_loop_close", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_barrier_1(self, p): - ret = p.sendCommand( - "uv_run_tests barrier_1", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_barrier_2(self, p): - ret = p.sendCommand( - "uv_run_tests barrier_2", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_barrier_3(self, p): - ret = p.sendCommand( - "uv_run_tests barrier_3", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_barrier_serial_thread(self, p): - ret = p.sendCommand( - "uv_run_tests barrier_serial_thread", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_barrier_serial_thread_single(self, p): - ret = p.sendCommand( - "uv_run_tests barrier_serial_thread_single", - ["not ok 1 -", "ok 1 -"], - timeout=10, - ) - assert ret == 1 - - def test_condvar_1(self, p): - ret = p.sendCommand( - "uv_run_tests condvar_1", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_condvar_2(self, p): - ret = p.sendCommand( - "uv_run_tests condvar_2", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_condvar_3(self, p): - ret = p.sendCommand( - "uv_run_tests condvar_3", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_condvar_4(self, p): - ret = p.sendCommand( - "uv_run_tests condvar_4", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_condvar_5(self, p): - ret = p.sendCommand( - "uv_run_tests condvar_5", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_semaphore_1(self, p): - ret = p.sendCommand( - "uv_run_tests semaphore_1", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_semaphore_2(self, p): - ret = p.sendCommand( - "uv_run_tests semaphore_2", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_semaphore_3(self, p): - ret = p.sendCommand( - "uv_run_tests semaphore_3", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer(self, p): - ret = p.sendCommand("uv_run_tests timer", ["not ok 1 -", "ok 1 -"], timeout=10) - assert ret == 1 - - def test_timer_init(self, p): - ret = p.sendCommand( - "uv_run_tests timer_init", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer_again(self, p): - ret = p.sendCommand( - "uv_run_tests timer_again", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer_start_twice(self, p): - ret = p.sendCommand( - "uv_run_tests timer_start_twice", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer_order(self, p): - ret = p.sendCommand( - "uv_run_tests timer_order", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer_huge_timeout(self, p): - ret = p.sendCommand( - "uv_run_tests timer_huge_timeout", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer_huge_repeat(self, p): - ret = p.sendCommand( - "uv_run_tests timer_huge_repeat", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer_run_once(self, p): - ret = p.sendCommand( - "uv_run_tests timer_run_once", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer_from_check(self, p): - ret = p.sendCommand( - "uv_run_tests timer_from_check", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer_is_closing(self, p): - ret = p.sendCommand( - "uv_run_tests timer_is_closing", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer_null_callback(self, p): - ret = p.sendCommand( - "uv_run_tests timer_null_callback", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_timer_early_check(self, p): - ret = p.sendCommand( - "uv_run_tests timer_early_check", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_loop_handles(self, p): - ret = p.sendCommand( - "uv_run_tests loop_handles", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_walk_handles(self, p): - ret = p.sendCommand( - "uv_run_tests walk_handles", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_active(self, p): - ret = p.sendCommand("uv_run_tests active", ["not ok 1 -", "ok 1 -"], timeout=10) - assert ret == 1 - - def test_embed(self, p): - if p.board in ["sim"]: - pytest.skip("unsupported at %s" % p.board) - ret = p.sendCommand("uv_run_tests embed", ["not ok 1 -", "ok 1 -"], timeout=10) - assert ret == 1 - - @pytest.mark.skip(reason="VELAPLATFO-6346") - def test_async(self, p): - if p.ci: - pytest.skip("unsupported at %s" % p.board) - if p.board in ["sim", "vela"]: - pytest.skip("unsupported at %s" % p.board) - ret = p.sendCommand("uv_run_tests async", ["not ok 1 -", "ok 1 -"], timeout=10) - assert ret == 1 - - def test_async_null_cb(self, p): - if p.ci: - pytest.skip("unsupported at %s" % p.board) - if p.board in ["sim", "vela"]: - pytest.skip("unsupported at %s" % p.board) - ret = p.sendCommand( - "uv_run_tests async_null_cb", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_homedir(self, p): - ret = p.sendCommand( - "uv_run_tests homedir", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_tmpdir(self, p): - ret = p.sendCommand("uv_run_tests tmpdir", ["not ok 1 -", "ok 1 -"], timeout=10) - assert ret == 1 - - def test_hrtime(self, p): - ret = p.sendCommand("uv_run_tests hrtime", ["not ok 1 -", "ok 1 -"], timeout=25) - assert ret == 1 - - def test_gettimeofday(self, p): - ret = p.sendCommand( - "uv_run_tests gettimeofday", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_poll_oob(self, p): - if p.board in ["sim"]: - pytest.skip("unsupported at %s" % p.board) - ret = p.sendCommand( - "uv_run_tests poll_oob", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_threadpool_queue_work_simple(self, p): - ret = p.sendCommand( - "uv_run_tests threadpool_queue_work_simple", - ["not ok 1 -", "ok 1 -"], - timeout=10, - ) - assert ret == 1 - - def test_threadpool_queue_work_einval(self, p): - ret = p.sendCommand( - "uv_run_tests threadpool_queue_work_einval", - ["not ok 1 -", "ok 1 -"], - timeout=10, - ) - assert ret == 1 - - def test_threadpool_cancel_getnameinfo(self, p): - ret = p.sendCommand( - "uv_run_tests threadpool_cancel_getnameinfo", - ["not ok 1 -", "ok 1 -"], - timeout=10, - ) - assert ret == 1 - - def test_threadpool_cancel_random(self, p): - ret = p.sendCommand( - "uv_run_tests threadpool_cancel_random", - ["not ok 1 -", "ok 1 -"], - timeout=10, - ) - assert ret == 1 - - def test_threadpool_cancel_work(self, p): - ret = p.sendCommand( - "uv_run_tests threadpool_cancel_work", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_threadpool_cancel_single(self, p): - ret = p.sendCommand( - "uv_run_tests threadpool_cancel_single", - ["not ok 1 -", "ok 1 -"], - timeout=10, - ) - assert ret == 1 - - def test_thread_local_storage(self, p): - ret = p.sendCommand( - "uv_run_tests thread_local_storage", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_thread_stack_size(self, p): - ret = p.sendCommand( - "uv_run_tests thread_stack_size", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_thread_mutex(self, p): - ret = p.sendCommand( - "uv_run_tests thread_mutex", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_thread_mutex_recursive(self, p): - ret = p.sendCommand( - "uv_run_tests thread_mutex_recursive", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_thread_rwlock(self, p): - ret = p.sendCommand( - "uv_run_tests thread_rwlock", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_thread_rwlock_trylock(self, p): - ret = p.sendCommand( - "uv_run_tests thread_rwlock_trylock", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_thread_create(self, p): - ret = p.sendCommand( - "uv_run_tests thread_create", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_thread_equal(self, p): - ret = p.sendCommand( - "uv_run_tests thread_equal", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_queue_foreach_delete(self, p): - ret = p.sendCommand( - "uv_run_tests queue_foreach_delete", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_random_async(self, p): - if p.ci: - pytest.skip("unsupported at %s" % p.board) - ret = p.sendCommand( - "uv_run_tests random_async", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_random_sync(self, p): - if p.ci: - pytest.skip("unsupported at %s" % p.board) - ret = p.sendCommand( - "uv_run_tests random_sync", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_handle_type_name(self, p): - ret = p.sendCommand( - "uv_run_tests handle_type_name", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_req_type_name(self, p): - ret = p.sendCommand( - "uv_run_tests req_type_name", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_utf8_decode1(self, p): - ret = p.sendCommand( - "uv_run_tests utf8_decode1", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 - - def test_utf8_decode1_overrun(self, p): - ret = p.sendCommand( - "uv_run_tests utf8_decode1_overrun", ["not ok 1 -", "ok 1 -"], timeout=10 - ) - assert ret == 1 diff --git a/tools/ci/testrun/script/test_open_posix/__init__.py b/tools/ci/testrun/script/test_open_posix/__init__.py deleted file mode 100644 index 7930aa0d737..00000000000 --- a/tools/ci/testrun/script/test_open_posix/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/python3 -############################################################################ -# tools/ci/testrun/script/test_open_posix/__init__.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 diff --git a/tools/ci/testrun/script/test_open_posix/test_openposix_.py b/tools/ci/testrun/script/test_open_posix/test_openposix_.py deleted file mode 100644 index bd9ee6ad78c..00000000000 --- a/tools/ci/testrun/script/test_open_posix/test_openposix_.py +++ /dev/null @@ -1,11205 +0,0 @@ -#!/usr/bin/python3 -############################################################################ -# tools/ci/testrun/script/test_open_posix/test_openposix_.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 -import pytest - -pytestmark = [pytest.mark.sim, pytest.mark.rv_virt] - - -def test_ltp_interfaces_mq_send_4_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_4_2", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigprocmask_12_1(p): -# ret = p.sendCommand( -# "ltp_interfaces_sigprocmask_12_1", -# ["PASSED", "passed", "Passed", "PASS"], -# timeout=10, -# ) -# retID = p.sendCommand("echo $?", "0", timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_timedwrlock_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_timedwrlock_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=30, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_destroy_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_destroy_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_cancel_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_aio_cancel_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_18(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_18", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_3_23(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_3_23', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_41(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_41", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigismember_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigismember_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_time_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_time_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_unlock_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_unlock_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_37_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_37_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_signal_7_1(p): - ret = p.sendCommand("ltp_interfaces_signal_7_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_unlink_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_unlink_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_getvalue_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_getvalue_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_getdetachstate_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_getdetachstate_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_97(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_97", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_receive_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_receive_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_6_4(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_6_4", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_strlen_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_strlen_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_getcpuclockid_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_getcpuclockid_1_1", ["new thread"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_detach_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_detach_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_tryrdlock_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_tryrdlock_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_16(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_16", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sem_open_6_1(p): -# ret = p.sendCommand('ltp_interfaces_sem_open_6_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_getschedparam_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_getschedparam_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_wait_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_wait_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_init_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_init_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_104(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_104", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_27_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_27_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_22(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_22", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_15(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_15", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_strcpy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_strcpy_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_19(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_19", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_join_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_join_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_settime_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_timer_settime_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_12_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_12_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_35(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_35", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_23(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_23", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_4_84(p): -# ret = p.sendCommand( -# "ltp_interfaces_sigaction_4_84", -# ["PASSED", "passed", "Passed", "PASS"], -# timeout=10, -# ) -# retID = p.sendCommand("echo $?", "0", timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sched_setparam_25_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_setparam_25_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigset_1_1(p): - ret = p.sendCommand("ltp_interfaces_sigset_1_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_gettime_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_timer_gettime_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_12(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_12", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_settime_17_2(p): - ret = p.sendCommand( - "ltp_interfaces_clock_settime_17_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sched_setscheduler_19_3(p): -# ret = p.sendCommand('ltp_interfaces_sched_setscheduler_19_3', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigqueue_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigqueue_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_timer_gettime_speculative_6_1(p): - ret = p.sendCommand( - "ltp_timer_gettime_speculative_6_1", ["errno==EINVAL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_setschedprio_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_setschedprio_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_destroy_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_destroy_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_69(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_69", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_21_1(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_21_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_61(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_61", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_timer_settime_speculative_12_3(p): - ret = p.sendCommand( - "ltp_timer_settime_speculative_12_3", ["errno==EINVAL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_init_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_init_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_102(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_102", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_27(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_27", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_read_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_read_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigset_2_1(p): - ret = p.sendCommand("ltp_interfaces_sigset_2_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_7(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_7", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_4_3(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_4_3", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setschedpolicy_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setschedpolicy_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_close_3_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_close_3_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_nanosleep_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_nanosleep_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_93(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_93", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_getparam_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_getparam_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_receive_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_receive_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutex_destroy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutex_destroy_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setinheritsched_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setinheritsched_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_rdlock_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_rdlock_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=30, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setscope_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setscope_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_fsync_14_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_fsync_14_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_18_8(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_18_8', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_raise_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_raise_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_51(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_51", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_munlock_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_munlock_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_setcancelstate_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_setcancelstate_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_8(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_8", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_55(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_55", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_75(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_75", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_6_1(p): - ret = p.sendCommand("ltp_interfaces_pthread_sigmask_6_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_5(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutex_destroy_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutex_destroy_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_4_85(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_4_85', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_mq_open_7_3(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_7_3", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_77(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_77", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_13_14(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_13_14', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_kill_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_kill_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_25(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_25", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_clock_settime_speculative_4_4(p): - ret = p.sendCommand( - "ltp_clock_settime_speculative_4_4", - ["Implementation does repeat signals on clock reset", "clock reset"], - timeout=30, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_nanosleep_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_nanosleep_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_18_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_18_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_21(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_21", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_29_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_29_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_timer_settime_speculative_12_2(p): - ret = p.sendCommand( - "ltp_timer_settime_speculative_12_2", ["errno==EINVAL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_12(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_12", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_open_15_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_open_15_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_8(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_8", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigset_4_1(p): - ret = p.sendCommand("ltp_interfaces_sigset_4_1", ["Inside handler"], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_7(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_7", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_gettime_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_gettime_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_7(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_7", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_settime_3_3(p): - ret = p.sendCommand( - "ltp_interfaces_timer_settime_3_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_23(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_23", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigignore_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigignore_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_53(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_53", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrierattr_setpshared_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrierattr_setpshared_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrier_wait_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrier_wait_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_17(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_17", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_open_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_open_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigprocmask_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigprocmask_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_detach_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_detach_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_9(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_9", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_13(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_13", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_spin_trylock_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_spin_trylock_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigpause_1_1(p): - pytest.skip("unsupported") - ret = p.sendCommand( - "ltp_interfaces_sigpause_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_15_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_15_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_21(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_21", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_79(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_79", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigprocmask_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigprocmask_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sched_setscheduler_19_2(p): -# ret = p.sendCommand('ltp_interfaces_sched_setscheduler_19_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_init_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_init_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_definitions_errno_h_4_1(p): - ret = p.sendCommand("ltp_definitions_errno_h_4_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_init_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_init_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaddset_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaddset_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_fsync_8_3(p): - ret = p.sendCommand( - "ltp_interfaces_aio_fsync_8_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_13(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_13", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_detach_4_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_detach_4_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwait_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigwait_4_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_21(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_21", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_destroy_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_destroy_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_settime_8_2(p): - ret = p.sendCommand( - "ltp_interfaces_timer_settime_8_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_19(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_19", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_22(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_22", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_unlink_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_unlink_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaddset_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaddset_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_71(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_71", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setinheritsched_2_4(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setinheritsched_2_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_50(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_50", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setschedpolicy_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setschedpolicy_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_14_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_14_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_20(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_20", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_init_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_init_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_16(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_16", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_16(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_16", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_timedwrlock_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_timedwrlock_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_init_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_init_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigpending_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigpending_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigismember_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigismember_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_wait_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_wait_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlockattr_destroy_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlockattr_destroy_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_setpshared_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_setpshared_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_19(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_19", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_detach_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_detach_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_10_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_8_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_sigmask_8_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_write_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_write_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_99(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_99", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_asctime_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_asctime_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutexattr_gettype_1_4(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_gettype_1_4', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_19(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_19", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigfillset_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigfillset_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_settime_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_timer_settime_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=30, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_write_9_2(p): - ret = p.sendCommand( - "ltp_interfaces_aio_write_9_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cancel_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cancel_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_post_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_post_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigtimedwait_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigtimedwait_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrierattr_init_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrierattr_init_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_9(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_9", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_14_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_14_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_kill_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_kill_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_60(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_60", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_get_priority_max_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_get_priority_max_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_11(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_11", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_mq_getattr_speculative_7_1(p): - ret = p.sendCommand( - "ltp_mq_getattr_speculative_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_setattr_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_setattr_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_kill_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_kill_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_create_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_create_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwait_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigwait_6_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_behavior_WIFEXITED_1_2(p): - ret = p.sendCommand( - "ltp_behavior_WIFEXITED_1_2", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_write_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_write_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_settime_19_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_settime_19_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_return_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_return_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_definitions_signal_h_19_1(p): - ret = p.sendCommand("ltp_definitions_signal_h_19_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_rdlock_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_rdlock_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=30, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_read_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_read_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_26(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_26", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_49(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_49", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_40(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_40", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigpause_2_1(p): - pytest.skip("unsupported") - ret = p.sendCommand( - "ltp_interfaces_sigpause_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_4_3(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_4_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigfillset_2_1(p): - ret = p.sendCommand("ltp_interfaces_sigfillset_2_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_24_1(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_24_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigqueue_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigqueue_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigprocmask_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigprocmask_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_13_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_13_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_notify_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_notify_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_9(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_9", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_fsync_12_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_fsync_12_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_14(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_14", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_1_2", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_key_delete_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_key_delete_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_10(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_10", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigdelset_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigdelset_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_getparam_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_getparam_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_19(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_19", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_getres_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_getres_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_20_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_20_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_23(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_23", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_13(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_13", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_6(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_6", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_close_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_close_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_unlink_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_unlink_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_fsync_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_fsync_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_sigmask_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cleanup_pop_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cleanup_pop_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_self_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_self_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutexattr_gettype_1_2(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_gettype_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_12(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_12", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_getpshared_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_getpshared_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_timer_settime_speculative_12_1(p): - ret = p.sendCommand( - "ltp_timer_settime_speculative_12_1", ["errno==EINVAL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_aio_error_3_1(p): -# ret = p.sendCommand('ltp_interfaces_aio_error_3_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sched_setscheduler_19_5(p): - ret = p.sendCommand( - "ltp_interfaces_sched_setscheduler_19_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_error_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_error_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_82(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_82", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_12_33(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_12_33', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_timedwrlock_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_timedwrlock_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_15(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_15", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_26(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_26", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_raise_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_raise_6_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_72(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_72", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_10_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwaitinfo_8_1(p): - ret = p.sendCommand("ltp_interfaces_sigwaitinfo_8_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_timedrdlock_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_timedrdlock_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_17(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_17", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_read_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_read_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_ctime_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_ctime_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_receive_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_receive_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_18(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_18", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_timedwait_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_timedwait_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwaitinfo_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigwaitinfo_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_write_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_write_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_6(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_6", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_32_1(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_32_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_16(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_16", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_24(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_24", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_11(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_11", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigqueue_8_1(p): - ret = p.sendCommand("ltp_interfaces_sigqueue_8_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_39_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_39_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_24(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_24", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_setparam_22_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_setparam_22_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_gettime_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_gettime_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_47(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_47", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_23(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_23", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_11(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_11", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_notify_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_notify_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_yield_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_yield_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_killpg_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_killpg_8_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrierattr_init_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrierattr_init_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_init_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_init_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_10(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_10", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_15_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_15_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_setscheduler_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_setscheduler_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_80(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_80", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_fsync_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_fsync_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaddset_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaddset_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigpause_4_1(p): - pytest.skip("unsupported") - ret = p.sendCommand( - "ltp_interfaces_sigpause_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_19(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_19", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_aio_write_2_1(p): -# ret = p.sendCommand('ltp_interfaces_aio_write_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_setprotocol_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_setprotocol_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_attr_setstack_4_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_attr_setstack_4_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigpending_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigpending_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_38_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_38_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_spin_init_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_spin_init_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigemptyset_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigemptyset_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_unlink_4_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_unlink_4_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_11_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_11_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_sigmask_4_1(p): -# ret = p.sendCommand("ltp_interfaces_pthread_sigmask_4_1", [""], timeout=10) -# retID = p.sendCommand("echo $?", "0", timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_48(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_48", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigprocmask_6_1(p): -# ret = p.sendCommand('ltp_interfaces_sigprocmask_6_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_21(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_21", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_13_7(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_13_7', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_gmtime_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_gmtime_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_destroy_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_destroy_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_20(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_20", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigtimedwait_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigtimedwait_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_59(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_59", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_11(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_11", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_fsync_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_fsync_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_post_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_post_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_6_6(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_6_6", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrierattr_setpshared_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrierattr_setpshared_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_functional_semaphores_sem_philosopher(p): -# ret = p.sendCommand('ltp_functional_semaphores_sem_philosopher', ['ap>'], timeout=70) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - -# def test_ltp_definitions_aio_h_2_1(p): -# ret = p.sendCommand('ltp_definitions_aio_h_2_1', [''], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sched_get_priority_max_1_4(p): - ret = p.sendCommand( - "ltp_interfaces_sched_get_priority_max_1_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_join_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_join_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_25(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_25", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_getvalue_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_getvalue_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_kill_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_kill_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sighold_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sighold_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_14_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_sigmask_14_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_settime_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_settime_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_timedwrlock_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_timedwrlock_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=30, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_init_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_init_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigtimedwait_4_1(p): -# ret = p.sendCommand('ltp_interfaces_sigtimedwait_4_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sem_wait_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_wait_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_25(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_25", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_notify_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_notify_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_5(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_26(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_26", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_13_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_13_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_init_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_init_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigignore_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigignore_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sighold_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sighold_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_22(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_22", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_26(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_26", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_gettime_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_timer_gettime_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_29(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_29", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_getpshared_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_getpshared_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_26(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_26", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_5(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_raise_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_raise_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_28_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_28_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_15(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_15", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_raise_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_raise_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_cancel_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_cancel_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutexattr_settype_3_3(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_settype_3_3', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_cancel_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cancel_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutex_trylock_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutex_trylock_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_unlink_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_unlink_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigdelset_1_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigdelset_1_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_return_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_return_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_14(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_14", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_21_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_21_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_12(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_12", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_getres_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_getres_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_settime_20_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_settime_20_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_timer_settime_8_3(p): -# ret = p.sendCommand('ltp_interfaces_timer_settime_8_3', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_killpg_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_killpg_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_getvalue_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_getvalue_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_close_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_close_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigrelse_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigrelse_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_9_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_20(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_20", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_81(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_81", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_8_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_sigmask_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_close_3_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_close_3_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_gmtime_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_gmtime_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigqueue_11_1(p): -# ret = p.sendCommand('ltp_interfaces_sigqueue_11_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_timer_getoverrun_speculative_6_2(p): - ret = p.sendCommand( - "ltp_timer_getoverrun_speculative_6_2", ["errno=EINVAL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_20(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_20", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_15_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_15_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_5(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_setparam_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_setparam_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_4_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_4_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_getcpuclockid_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_getcpuclockid_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_26(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_26", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_create_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_create_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_56(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_56", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_init_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_init_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_functional_semaphores_sem_conpro(p): - ret = p.sendCommand( - "ltp_functional_semaphores_sem_conpro", ["taken 900"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_88(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_88", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigqueue_6_1(p): - ret = p.sendCommand("ltp_interfaces_sigqueue_6_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_9(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_9", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_setspecific_1_2(p): -# ret = p.sendCommand('ltp_interfaces_pthread_setspecific_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_open_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_open_10_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigdelset_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigdelset_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_18_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_18_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_28(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_28", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_detach_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_detach_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_24(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_24", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutex_init_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutex_init_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_setpshared_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_setpshared_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_init_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_init_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_notify_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_notify_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_nanosleep_10000_1(p): - ret = p.sendCommand( - "ltp_interfaces_nanosleep_10000_1", ["All tests PASSED"], timeout=30 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwait_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigwait_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_destroy_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_destroy_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_gettime_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_gettime_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_setattr_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_setattr_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_getvalue_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_getvalue_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_create_12_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_create_12_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cond_init_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cond_init_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_unlink_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_unlink_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_20(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_20", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cond_init_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cond_init_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_getpshared_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_getpshared_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_post_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_post_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_20_3(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_20_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigset_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigset_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_getclock_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_getclock_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_mq_unlink_1_1(p): -# ret = p.sendCommand('ltp_interfaces_mq_unlink_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=5) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sched_getscheduler_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_getscheduler_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_destroy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_destroy_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_nanosleep_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_nanosleep_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_join_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_join_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_28_2(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_28_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_26_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_26_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mlock_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_mlock_5_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_localtime_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_localtime_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cond_init_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cond_init_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_21(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_21", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_getres_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_getres_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cleanup_push_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cleanup_push_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_11(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_11", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_21(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_21", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_6(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_6", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_open_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_open_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_destroy_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_destroy_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_7(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_7", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sched_getparam_3_1(p): -# ret = p.sendCommand('ltp_interfaces_sched_getparam_3_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaddset_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaddset_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_19_1(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_19_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_24(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_24", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_gettime_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_gettime_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigrelse_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigrelse_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_timedwait_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_timedwait_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutex_timedlock_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutex_timedlock_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_6(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_6", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_pthread_key_create_speculative_5_1(p): - ret = p.sendCommand( - "ltp_pthread_key_create_speculative_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_10(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_10", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_settime_9_2(p): - ret = p.sendCommand( - "ltp_interfaces_timer_settime_9_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=30, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_8(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_8", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_setcancelstate_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_setcancelstate_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_6(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_6", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_receive_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_receive_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_attr_setinheritsched_2_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_attr_setinheritsched_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_11(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_11", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_write_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_write_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_18(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_18", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_92(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_92", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_fsync_8_2(p): - ret = p.sendCommand( - "ltp_interfaces_aio_fsync_8_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_19_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_19_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutexattr_settype_7_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_settype_7_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_gettype_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_gettype_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_83(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_83", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigtimedwait_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigtimedwait_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_receive_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_receive_10_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_delete_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_timer_delete_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigprocmask_10_1(p): -# ret = p.sendCommand('ltp_interfaces_sigprocmask_10_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_9(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_9", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_cancel_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_cancel_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_39_2(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_39_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_10(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_10", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_spin_destroy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_spin_destroy_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigprocmask_17_1(p): -# ret = p.sendCommand( -# "ltp_interfaces_sigprocmask_17_1", -# ["PASSED", "passed", "Passed", "PASS"], -# timeout=10, -# ) -# retID = p.sendCommand("echo $?", "0", timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_11(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_11", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutex_init_4_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutex_init_4_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaltstack_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaltstack_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_18(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_18", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_15(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_15", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_3_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_20_2(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_20_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_22_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_22_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_wrlock_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_wrlock_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_timedrdlock_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_timedrdlock_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_create_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_create_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwaitinfo_2_1(p): - ret = p.sendCommand("ltp_interfaces_sigwaitinfo_2_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_44(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_44", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_clock_settime_17_1(p): -# ret = p.sendCommand('ltp_interfaces_clock_settime_17_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_sched_getparam_speculative_7_1(p): - ret = p.sendCommand("ltp_sched_getparam_speculative_7_1", ["NULL"], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_24(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_24", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_8_3(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_sigmask_8_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_18(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_18", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_nanosleep_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_nanosleep_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_getpshared_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_getpshared_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_kill_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_kill_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setinheritsched_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setinheritsched_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_13(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_13", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_mq_timedreceive_speculative_10_2(p): - ret = p.sendCommand( - "ltp_mq_timedreceive_speculative_10_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_28_15(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_28_15', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_30(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_30", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigset_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigset_6_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_signal_3_1(p): - ret = p.sendCommand("ltp_interfaces_signal_3_1", ["Inside handler"], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_23(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_23", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_17(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_17", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_21(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_21", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_close_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_close_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_9(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_9", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sem_getvalue_2_1(p): -# ret = p.sendCommand('ltp_interfaces_sem_getvalue_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_15_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_sigmask_15_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_91(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_91", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigismember_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigismember_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_setparam_23_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_setparam_23_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_sigmask_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_14(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_14", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigdelset_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigdelset_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_mq_open_speculative_26_1(p): -# ret = p.sendCommand('ltp_mq_open_speculative_26_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_13_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_13_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_20(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_20", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_13_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_13_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_17_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_17_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaddset_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaddset_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_gettime_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_timer_gettime_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_getscheduler_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_getscheduler_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_getschedparam_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_getschedparam_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_read_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_read_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_14(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_14", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_definitions_errno_h_3_2(p): - ret = p.sendCommand("ltp_definitions_errno_h_3_2", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_init_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_init_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_9(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_9", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_90(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_90", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigprocmask_8_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigprocmask_8_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwait_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigwait_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_setprotocol_3_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_setprotocol_3_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_rr_get_interval_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_rr_get_interval_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwaitinfo_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigwaitinfo_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_timedwait_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_timedwait_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_destroy_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_destroy_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mlock_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_mlock_10_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_gettime_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_clock_gettime_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cond_init_4_3(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cond_init_4_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_post_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_post_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlockattr_getpshared_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlockattr_getpshared_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_getpshared_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_getpshared_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_munmap_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_munmap_8_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_74(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_74", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_6(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_6", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigprocmask_8_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigprocmask_8_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_24(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_24", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_settime_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_settime_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_getres_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_getres_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_26(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_26", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_key_delete_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_key_delete_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_get_priority_min_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_sched_get_priority_min_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_19_11(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_19_11', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_22(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_22", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigtimedwait_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigtimedwait_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_mq_open_3_1(p): -# ret = p.sendCommand('ltp_interfaces_mq_open_3_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setschedparam_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setschedparam_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_attr_setstacksize_1_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_attr_setstacksize_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_pthread_rwlock_trywrlock_speculative_3_1(p): - ret = p.sendCommand( - "ltp_pthread_rwlock_trywrlock_speculative_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_timedwrlock_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_timedwrlock_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sem_open_2_1(p): -# ret = p.sendCommand('ltp_interfaces_sem_open_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlockattr_init_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlockattr_init_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=5) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_nanosleep_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_nanosleep_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_16(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_16", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_cancel_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_cancel_10_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_mlockall_8_1(p): -# ret = p.sendCommand('ltp_interfaces_mlockall_8_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_37(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_37", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_setcancelstate_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_setcancelstate_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_init_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_init_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sem_open_4_1(p): -# ret = p.sendCommand('ltp_interfaces_sem_open_4_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_10(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_10", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_5(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_setschedparam_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_setschedparam_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_3_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_3_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setschedparam_1_4(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setschedparam_1_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=5) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setdetachstate_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setdetachstate_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_init_5_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_init_5_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_68(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_68", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_key_create_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_key_create_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutexattr_gettype_1_3(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_gettype_1_3', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_aio_fsync_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_fsync_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_18(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_18", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_destroy_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_destroy_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlockattr_init_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlockattr_init_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_62(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_62", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_13(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_13", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_create_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_create_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlockattr_destroy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlockattr_destroy_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_setclock_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_setclock_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_signal_6_1(p): - ret = p.sendCommand("ltp_interfaces_signal_6_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_equal_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_equal_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_19(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_19", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_36(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_36", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_timer_delete_speculative_5_2(p): - ret = p.sendCommand( - "ltp_timer_delete_speculative_5_2", ["errno=EINVAL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_behavior_WIFEXITED_1_1(p): - ret = p.sendCommand( - "ltp_behavior_WIFEXITED_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_5_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cond_destroy_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cond_destroy_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_19(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_19", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_10(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_10", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_3_22(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_3_22', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_munlock_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_munlock_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cleanup_pop_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cleanup_pop_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_unlink_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_unlink_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_fsync_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_fsync_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_23(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_23", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigpause_3_1(p): - pytest.skip("unsupported") - ret = p.sendCommand( - "ltp_interfaces_sigpause_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_destroy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_destroy_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_unlock_4_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_unlock_4_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigpending_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigpending_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cancel_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cancel_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_26(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_26", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_4_64(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_4_64', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigwaitinfo_7_1(p): - ret = p.sendCommand("ltp_interfaces_sigwaitinfo_7_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_2_8(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_2_8', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigset_8_1(p): - ret = p.sendCommand("ltp_interfaces_sigset_8_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_read_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_read_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_get_priority_max_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_get_priority_max_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_destroy_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_destroy_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_16(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_16", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_18(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_18", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_10(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_10", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_41_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_41_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_87(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_87", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_timer_create_speculative_15_1(p): - ret = p.sendCommand( - "ltp_timer_create_speculative_15_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_spin_lock_3_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_spin_lock_3_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_25(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_25", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwait_6_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigwait_6_2", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_18(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_18", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_6_5(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_6_5", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_post_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_post_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_setscheduler_19_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_setscheduler_19_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_create_16_1(p): - ret = p.sendCommand( - "ltp_interfaces_timer_create_16_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_setspecific_1_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_setspecific_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_killpg_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_killpg_5_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_21(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_21", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_receive_12_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_receive_12_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigqueue_4_1(p): - ret = p.sendCommand("ltp_interfaces_sigqueue_4_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sem_open_5_1(p): -# ret = p.sendCommand('ltp_interfaces_sem_open_5_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_12(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_12", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_timedrdlock_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_timedrdlock_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_init_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_init_6_1", - ["PASSED", "passed", "Passed", "PASS", "skipped"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigpending_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigpending_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaltstack_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaltstack_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=5) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_23_10(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_23_10', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_strchr_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_strchr_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_20(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_20", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_key_delete_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_key_delete_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_close_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_close_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_17_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_17_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_setscheduler_17_5(p): - ret = p.sendCommand( - "ltp_interfaces_sched_setscheduler_17_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_nanosleep_13_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_nanosleep_13_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_38(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_38", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_22(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_22", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_24(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_24", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_15(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_15", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_init_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_init_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_22(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_22", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutex_trylock_2_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutex_trylock_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_mktime_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_mktime_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwaitinfo_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigwaitinfo_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_timedwait_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_timedwait_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_17(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_17", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_atfork_2_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_atfork_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_cleanup_push_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cleanup_push_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_sigmask_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_read_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_read_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_getinheritsched_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_getinheritsched_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_17_3(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_17_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_timedwait_6_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_timedwait_6_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_strftime_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_strftime_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_94(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_94", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_destroy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_destroy_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_24(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_24", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_unlink_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_unlink_10_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_once_1_2(p): - ret = p.sendCommand("ltp_interfaces_pthread_once_1_2", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_25(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_25", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_43(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_43", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_unlink_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_unlink_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_attr_getstacksize_1_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_attr_getstacksize_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -# def test_ltp_interfaces_pthread_kill_6_1(p): -# ret = p.sendCommand("ltp_interfaces_pthread_kill_6_1", ["ESRCH"], timeout=10) -# retID = p.sendCommand("echo $?", "0", timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_15(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_15", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_42(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_42", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_15_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_15_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_getclock_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_getclock_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_killpg_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_killpg_6_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_14_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_14_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_13(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_13", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutexattr_setpshared_3_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_setpshared_3_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - -# def test_ltp_interfaces_aio_return_3_2(p): -# ret = p.sendCommand('ltp_interfaces_aio_return_3_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setdetachstate_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setdetachstate_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_write_8_2(p): - ret = p.sendCommand( - "ltp_interfaces_aio_write_8_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_13(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_13", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cleanup_push_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cleanup_push_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_13_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_13_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_18_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_18_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_spin_lock_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_spin_lock_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_getattr_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_getattr_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_mq_open_speculative_6_1(p): - ret = p.sendCommand("ltp_mq_open_speculative_6_1", ["does not fail"], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cond_destroy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cond_destroy_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_setscheduler_17_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_setscheduler_17_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_17(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_17", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_19(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_19", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_settime_8_4(p): - ret = p.sendCommand( - "ltp_interfaces_timer_settime_8_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_28_3(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_28_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_key_create_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_key_create_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_70(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_70", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_10_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_once_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_once_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_unlink_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_unlink_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_write_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_write_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_5(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_attr_setstacksize_4_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_attr_setstacksize_4_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_19_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_19_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_wait_13_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_wait_13_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_trywrlock_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_trywrlock_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_17_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_17_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwait_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigwait_3_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_settime_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_timer_settime_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_103(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_103", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setstack_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setstack_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_rdlock_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_rdlock_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setdetachstate_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setdetachstate_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_functional_semaphores_sem_sleepingbarber(p): -# ret = p.sendCommand('ltp_functional_semaphores_sem_sleepingbarber', ['nice hair.'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_definitions_signal_h_13_1(p): - ret = p.sendCommand( - "ltp_definitions_signal_h_13_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_31(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_31", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_timer_gettime_speculative_6_2(p): - ret = p.sendCommand( - "ltp_timer_gettime_speculative_6_2", ["errno==EINVAL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_13_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_13_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_52(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_52", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_54(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_54", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_attr_setschedparam_1_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_attr_setschedparam_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_raise_10000_1(p): - ret = p.sendCommand( - "ltp_interfaces_raise_10000_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_9(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_9", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_9(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_9", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_open_1_4(p): - ret = p.sendCommand( - "ltp_interfaces_sem_open_1_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_definitions_aio_h_4_1(p): - ret = p.sendCommand("ltp_definitions_aio_h_4_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutex_trylock_1_2(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutex_trylock_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - -# def test_ltp_interfaces_aio_fsync_5_1(p): -# ret = p.sendCommand('ltp_interfaces_aio_fsync_5_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_86(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_86", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_12(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_12", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_26(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_26", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_9(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_9", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_gettime_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_gettime_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_8_17(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_8_17', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_15(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_15", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_14(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_14", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_7(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_7", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_5(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_76(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_76", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutex_destroy_2_2(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutex_destroy_2_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_11_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_11_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_getdetachstate_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_getdetachstate_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_definitions_signal_h_26_1(p): - ret = p.sendCommand("ltp_definitions_signal_h_26_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_exit_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_exit_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_timedwait_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_sem_timedwait_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_22(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_22", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_7(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_7", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_21(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_21", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_12(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_12", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_29_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_29_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigprocmask_4_1(p): -# ret = p.sendCommand( -# "ltp_interfaces_sigprocmask_4_1", -# ["PASSED", "passed", "Passed", "PASS"], -# timeout=10, -# ) -# retID = p.sendCommand("echo $?", "0", timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setschedpolicy_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setschedpolicy_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrierattr_getpshared_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrierattr_getpshared_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_kill_7_1(p): - ret = p.sendCommand("ltp_interfaces_pthread_kill_7_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_post_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_post_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutexattr_gettype_1_5(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_gettype_1_5', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_destroy_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_destroy_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setschedparam_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setschedparam_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_functional_semaphores_sem_readerwriter(p): -# ret = p.sendCommand('ltp_functional_semaphores_sem_readerwriter', ['exit.'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_mq_timedsend_speculative_18_2(p): - ret = p.sendCommand( - "ltp_mq_timedsend_speculative_18_2", ["did fail on invalid"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_cancel_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_cancel_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_mq_send_9_1(p): -# ret = p.sendCommand('ltp_interfaces_mq_send_9_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_mq_send_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigwait_8_1(p): -# ret = p.sendCommand('ltp_interfaces_sigwait_8_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - -# def test_ltp_interfaces_sigwait_1_1(p): -# ret = p.sendCommand('ltp_interfaces_sigwait_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_78(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_78", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_16_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_16_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_attr_setstack_6_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_attr_setstack_6_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setschedpolicy_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setschedpolicy_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_kill_2_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_kill_2_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_timedrdlock_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_timedrdlock_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_init_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_init_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_25(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_25", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_strftime_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_strftime_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_setpshared_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_setpshared_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_23_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_23_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_getpid_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_getpid_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_wait_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_wait_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_fsync_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_fsync_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_8(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_8", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_unlink_10_2(p): - ret = p.sendCommand( - "ltp_interfaces_shm_unlink_10_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_27_1(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_27_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_get_priority_min_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_get_priority_min_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_20(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_20", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigqueue_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigqueue_10_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_12(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_12", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_pthread_join_speculative_6_1(p): - ret = p.sendCommand( - "ltp_pthread_join_speculative_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_16_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_sigmask_16_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_unlink_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_unlink_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigemptyset_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigemptyset_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_58(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_58", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_wrlock_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_wrlock_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=30, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_20(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_20", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_mq_unlink_speculative_7_2(p): - ret = p.sendCommand( - "ltp_mq_unlink_speculative_7_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigset_9_1(p): - ret = p.sendCommand("ltp_interfaces_sigset_9_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_21(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_21", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_close_3_3(p): - ret = p.sendCommand( - "ltp_interfaces_mq_close_3_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_rwlock_rdlock_1_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_rwlock_rdlock_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigignore_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigignore_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_8(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_8", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_7(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_7", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_open_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_open_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_nanosleep_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_nanosleep_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_shm_open_25_1(p): -# ret = p.sendCommand( -# "ltp_interfaces_shm_open_25_1", -# ["PASSED", "passed", "Passed", "PASS"], -# timeout=10, -# ) -# retID = p.sendCommand("echo $?", "0", timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sem_wait_12_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_wait_12_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_get_priority_max_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_sched_get_priority_max_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_5(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_pthread_getcpuclockid_speculative_3_1(p): - ret = p.sendCommand( - "ltp_pthread_getcpuclockid_speculative_3_1", ["doesn't exist"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_create_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_create_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_65(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_65", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_getattr_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_getattr_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_getscheduler_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_getscheduler_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_10(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_10", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_wait_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_wait_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_once_2_1(p): - ret = p.sendCommand("ltp_interfaces_pthread_once_2_1", [""], timeout=20) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_setpshared_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_setpshared_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_difftime_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_difftime_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_getschedparam_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_getschedparam_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_12_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_12_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_23(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_23", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_killpg_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_killpg_4_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_15(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_15", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_setattr_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_setattr_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_19_15(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_19_15', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - -# def test_ltp_interfaces_fsync_5_1(p): -# ret = p.sendCommand('ltp_interfaces_fsync_5_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigset_5_1(p): - ret = p.sendCommand("ltp_interfaces_sigset_5_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_14(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_14", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_open_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_sem_open_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_4_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_6_14(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_6_14', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_23(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_23", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_fork_1_1(p): -# ret = p.sendCommand('ltp_interfaces_fork_1_1', [''], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_12(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_12", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrier_destroy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrier_destroy_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_13(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_13", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_10(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_10", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=5) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigwaitinfo_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigwaitinfo_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_timer_getoverrun_speculative_6_1(p): -# ret = p.sendCommand('ltp_timer_getoverrun_speculative_6_1', ['errno=EINVAL'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_89(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_89", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_14(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_14", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_25(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_25", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_100(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_100", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_timer_gettime_speculative_6_3(p): - ret = p.sendCommand( - "ltp_timer_gettime_speculative_6_3", ["errno==EINVAL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_join_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_join_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_timedwait_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_timedwait_10_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_24(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_24", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_25(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_25", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_18(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_18", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_suspend_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_suspend_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigaction_18_16(p): -# ret = p.sendCommand('ltp_interfaces_sigaction_18_16', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_setpshared_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_setpshared_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_setclock_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_setclock_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_write_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_write_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_strftime_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_strftime_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_unlock_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_unlock_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_73(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_73", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_aio_write_1_2(p): -# ret = p.sendCommand('ltp_interfaces_aio_write_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_mq_getattr_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_getattr_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_setattr_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_setattr_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_get_priority_min_1_4(p): - ret = p.sendCommand( - "ltp_interfaces_sched_get_priority_min_1_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_11(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_11", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_setpshared_3_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_setpshared_3_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_fsync_8_4(p): - ret = p.sendCommand( - "ltp_interfaces_aio_fsync_8_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_8(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_8", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_67(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_67", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_25(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_25", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_create_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_timer_create_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_getschedpolicy_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_getschedpolicy_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_join_6_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_join_6_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_settime_3_2(p): - ret = p.sendCommand( - "ltp_interfaces_timer_settime_3_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_destroy_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_destroy_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_unlink_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_unlink_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_5(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sched_setscheduler_19_4(p): -# ret = p.sendCommand('ltp_interfaces_sched_setscheduler_19_4', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_13(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_13", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_unlink_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_unlink_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrier_destroy_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrier_destroy_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_19_16(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_19_16", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_setschedparam_1_2(p): - ret = p.sendCommand("ltp_interfaces_pthread_setschedparam_1_2", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_63(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_63", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_8_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_34(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_34", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_setschedparam_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_setschedparam_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_unlink_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_unlink_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_read_3_2(p): - ret = p.sendCommand( - "ltp_interfaces_aio_read_3_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_12(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_12", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_39(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_39", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_signal_5_1(p): - ret = p.sendCommand("ltp_interfaces_signal_5_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_16(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_16", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrier_init_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrier_init_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_7(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_7", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigprocmask_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigprocmask_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_46(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_46", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_25(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_25", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sigqueue_7_1(p): -# ret = p.sendCommand( -# "ltp_interfaces_sigqueue_7_1", ["1, 2, 3", "62, 63,"], timeout=10 -# ) -# retID = p.sendCommand("echo $?", "0", timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_mq_open_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_7_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_mq_open_speculative_2_2(p): -# ret = p.sendCommand('ltp_mq_open_speculative_2_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrier_wait_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrier_wait_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_timers_clocks_invaliddates(p): - ret = p.sendCommand( - "ltp_timers_clocks_invaliddates", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_mq_open_speculative_2_3(p): - ret = p.sendCommand( - "ltp_mq_open_speculative_2_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigdelset_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_sigdelset_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setscope_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setscope_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_getattr_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_getattr_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_14(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_14", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_receive_11_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_receive_11_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sched_rr_get_interval_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sched_rr_get_interval_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_attr_getstack_1_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_attr_getstack_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_7(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_7", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_sched_rr_get_interval_speculative_5_1(p): - ret = p.sendCommand( - "ltp_sched_rr_get_interval_speculative_5_1", ["NULL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_13(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_13", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_read_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_read_10_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutexattr_getpshared_1_2(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_getpshared_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_raise_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_raise_4_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_strncpy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_strncpy_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setinheritsched_2_3(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setinheritsched_2_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=5) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigset_10_1(p): - ret = p.sendCommand("ltp_interfaces_sigset_10_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_settime_8_1(p): - ret = p.sendCommand( - "ltp_interfaces_timer_settime_8_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_21_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_21_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_95(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_95", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_nanosleep_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_nanosleep_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_behavior_timers_2_1(p): - ret = p.sendCommand( - "ltp_behavior_timers_2_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_aio_return_3_1(p): -# ret = p.sendCommand('ltp_interfaces_aio_return_3_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sighold_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sighold_3_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_setcancelstate_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_setcancelstate_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_20_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_20_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlock_timedrdlock_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlock_timedrdlock_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_raise_1_2(p): -# ret = p.sendCommand('ltp_interfaces_raise_1_2', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_clock_getres_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_getres_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_getspecific_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_getspecific_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_20(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_20", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_signal_1_1(p): - ret = p.sendCommand("ltp_interfaces_signal_1_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_fsync_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_fsync_4_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrierattr_destroy_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrierattr_destroy_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_6(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_6", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_17(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_17", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_45(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_45", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setdetachstate_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setdetachstate_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_behavior_timers_1_1(p): - ret = p.sendCommand( - "ltp_behavior_timers_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_8(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_8", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_open_25_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_open_25_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_attr_setinheritsched_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_attr_setinheritsched_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_66(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_66", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_16(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_16", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_gettime_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_timer_gettime_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_8(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_8", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_sem_unlink_6_1(p): -# ret = p.sendCommand('ltp_interfaces_sem_unlink_6_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_timer_getoverrun_speculative_6_3(p): - ret = p.sendCommand( - "ltp_timer_getoverrun_speculative_6_3", ["errno==EINVAL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_mutexattr_settype_1_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_mutexattr_settype_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_aio_cancel_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_cancel_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_2(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_signal_2_1(p): - ret = p.sendCommand("ltp_interfaces_signal_2_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutex_init_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutex_init_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_definitions_sched_h_10_1(p): - ret = p.sendCommand("ltp_definitions_sched_h_10_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigset_3_1(p): - ret = p.sendCommand("ltp_interfaces_sigset_3_1", ["Inside handler"], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_nanosleep_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_nanosleep_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigrelse_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigrelse_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cancel_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cancel_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedsend_20_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedsend_20_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_3_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_3_2", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_timer_delete_speculative_5_1(p): - ret = p.sendCommand( - "ltp_timer_delete_speculative_5_1", ["errno=EINVAL"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -# def test_ltp_interfaces_pthread_attr_setstack_1_1(p): -# ret = p.sendCommand('ltp_interfaces_pthread_attr_setstack_1_1', ['PASSED', 'passed', 'Passed', 'PASS'], timeout=10) -# retID = p.sendCommand('echo $?', '0', timeout=2) -# assert ret >= 0 -# assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_19(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_19", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_clock_getres_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_clock_getres_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_10_2(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_10_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_create_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_create_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_12_32(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_12_32", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_5(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_5", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_testcancel_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_testcancel_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_setclock_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_setclock_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_timedwait_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_timedwait_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_read_5_1(p): - ret = p.sendCommand( - "ltp_interfaces_aio_read_5_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_18(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_18", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_17(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_17", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_2_22(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_2_22", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_stress_signals_sigismember_stress_1(p): - ret = p.sendCommand("ltp_stress_signals_sigismember_stress_1", [""], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_definitions_mqueue_h_1_1(p): - ret = p.sendCommand( - "ltp_definitions_mqueue_h_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_setclock_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_setclock_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_killpg_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_killpg_1_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_timedreceive_10_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_timedreceive_10_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_send_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_send_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_barrier_init_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_barrier_init_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlockattr_setpshared_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlockattr_setpshared_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_close_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_close_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_open_14_2(p): - ret = p.sendCommand( - "ltp_interfaces_shm_open_14_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mmap_23_1(p): - ret = p.sendCommand( - "ltp_interfaces_mmap_23_1", ["PASSED", "passed", "Passed", "PASS"], timeout=10 - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_close_2_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_close_2_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_condattr_setpshared_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_condattr_setpshared_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigqueue_9_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigqueue_9_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_12_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_12_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutex_destroy_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutex_destroy_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_cancel_4_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_cancel_4_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_timedwait_7_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_timedwait_7_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_rwlockattr_getpshared_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_rwlockattr_getpshared_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_8_6(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_8_6", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_gettime_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_timer_gettime_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigignore_6_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigignore_6_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_28_22(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_28_22", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_17(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_17", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigprocmask_15_1(p): - ret = p.sendCommand( - "ltp_interfaces_sigprocmask_15_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_shm_unlink_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_shm_unlink_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_96(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_96", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_18_6(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_18_6", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_23(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_23", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_101(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_101", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_gettime_1_3(p): - ret = p.sendCommand( - "ltp_interfaces_timer_gettime_1_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_6(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_6", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_sigmask_12_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_sigmask_12_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_3_26(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_3_26", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_23_4(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_23_4", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_aio_read_11_2(p): - ret = p.sendCommand( - "ltp_interfaces_aio_read_11_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_mq_receive_11_1(p): - ret = p.sendCommand( - "ltp_interfaces_mq_receive_11_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_6_11(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_6_11", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sem_init_3_1(p): - ret = p.sendCommand( - "ltp_interfaces_sem_init_3_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_lio_listio_15_1(p): - ret = p.sendCommand( - "ltp_interfaces_lio_listio_15_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_1_17(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_1_17", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_13_24(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_13_24", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_delete_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_timer_delete_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_stress_semaphores_multi_con_pro(p): - ret = p.sendCommand("ltp_stress_semaphores_multi_con_pro 5", ["exit."], timeout=10) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_setpshared_2_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_setpshared_2_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_mutexattr_getprotocol_1_1(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_mutexattr_getprotocol_1_1", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_pthread_create_1_2(p): - ret = p.sendCommand( - "ltp_interfaces_pthread_create_1_2", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_98(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_98", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_sigaction_4_57(p): - ret = p.sendCommand( - "ltp_interfaces_sigaction_4_57", - ["PASSED", "passed", "Passed", "PASS"], - timeout=10, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 - - -def test_ltp_interfaces_timer_settime_5_3(p): - ret = p.sendCommand( - "ltp_interfaces_timer_settime_5_3", - ["PASSED", "passed", "Passed", "PASS"], - timeout=200, - ) - retID = p.sendCommand("echo $?", "0", timeout=2) - assert ret >= 0 - assert retID >= 0 diff --git a/tools/ci/testrun/script/test_os/__init__.py b/tools/ci/testrun/script/test_os/__init__.py deleted file mode 100644 index 34f444b1b07..00000000000 --- a/tools/ci/testrun/script/test_os/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3 -############################################################################ -# tools/ci/testrun/script/test_os/__init__.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 diff --git a/tools/ci/testrun/script/test_os/test_os.py b/tools/ci/testrun/script/test_os/test_os.py deleted file mode 100644 index 34d6118b668..00000000000 --- a/tools/ci/testrun/script/test_os/test_os.py +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/env python3 -############################################################################ -# tools/ci/testrun/script/test_os/test_os.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 -import os - -import pytest - -pytestmark = [pytest.mark.common, pytest.mark.qemu] -do_not_support = ["sabre-6quad", "rv-virt", "rv-virt64", "esp32c3-devkit", "bl602evb"] - - -def test_ostest(p): - if p.board == "sim": - os.mkdir("./test") - ret = p.sendCommand("mount -t hostfs -o fs=./test /data") - - ret = p.sendCommand("ostest", "Exiting with status 0", timeout=300) - assert ret == 0 - - -def test_mm(p): - if p.board in do_not_support: - pytest.skip("unsupported at {}".format(p.board)) - ret = p.sendCommand("heap", "TEST COMPLETE", timeout=120) - assert ret == 0 - - -def test_cxxtest(p): - if p.board in do_not_support: - pytest.skip("unsupported at {}".format(p.board)) - ret = p.sendCommand("cxxtest", "Test std::map") - assert ret == 0 - - -def test_scanftest(p): - if p.board in do_not_support: - pytest.skip("unsupported at {}".format(p.board)) - ret = p.sendCommand("scanftest", "FAILED: 0") - assert ret == 0 - - -def test_getprime(p): - if p.board in ["rv-virt", "rv-virt64"]: - pytest.skip("unsupported at {}".format(p.board)) - ret = p.sendCommand("getprime", "getprime took") - assert ret == 0 - - -def test_stdio(p): - if p.board in do_not_support: - pytest.skip("unsupported at {}".format(p.board)) - ret = p.sendCommand("fopencookie_test", "fopencokie tests were successful.") - assert ret == 0 - ret = p.sendCommand("fmemopen_test", "FAILED: 0") - assert ret == 0 - ret = p.sendCommand("open_memstream_test", "FAILED: 0") - assert ret == 0 - - -def test_stdbit(p): - if p.board in do_not_support: - pytest.skip("unsupported at {}".format(p.board)) - ret = p.sendCommand("stdbit_test", "stdbit tests: SUCCESSFUL: 14; FAILED: 0") - assert ret == 0 - - -@pytest.mark.run(order=-2) -def test_fs_test(p): - if p.board in do_not_support: - pytest.skip("unsupported at {}".format(p.board)) - fstest_dir = "{}/{}_fstest".format(p.fs, p.core) - p.sendCommand("mkdir %s" % fstest_dir) - ret = p.sendCommand("fstest -n 10 -m %s" % fstest_dir, "FAILED: 0", timeout=2000) - p.sendCommand("ls %s" % fstest_dir) - p.sendCommand("rmdir %s" % fstest_dir) - - if p.board == "sim": - os.rmdir("./test") - assert ret == 0 - - -@pytest.mark.run(order=-1) -def test_psram_test(p): - if p.board in do_not_support: - pytest.skip("unsupported at {}".format(p.board)) - if p.sendCommand("ls /", "tmp/") == 0: - ret = p.sendCommand("fstest -n 10 -m /tmp", "Final memory usage", timeout=500) - p.sendCommand("ls /tmp") - assert ret == 0 diff --git a/tools/ci/testrun/utils/__init__.py b/tools/ci/testrun/utils/__init__.py deleted file mode 100644 index 61178fda5b5..00000000000 --- a/tools/ci/testrun/utils/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3 -############################################################################ -# tools/ci/testrun/utils/__init__.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -# encoding: utf-8 diff --git a/tools/ci/testrun/utils/common.py b/tools/ci/testrun/utils/common.py deleted file mode 100644 index 230369c2b1e..00000000000 --- a/tools/ci/testrun/utils/common.py +++ /dev/null @@ -1,492 +0,0 @@ -#!/usr/bin/env python3 -############################################################################ -# tools/ci/testrun/utils/common.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ -import os -import re -import subprocess -import time -from enum import Enum - -import pexpect -import pexpect.fdpexpect -import pexpect.spawnbase -import serial - -rootPath = os.path.dirname(os.path.abspath(__file__)) - -tmp_read_nonblocking = pexpect.spawnbase.SpawnBase.read_nonblocking - - -def enhanced_read_nonblocking(self, size=1, timeout=None): - return re.sub( - r"(\x9B|\x1B\[)[0-?]*[ -\/]*[@-~]", - "", - tmp_read_nonblocking(self, size, timeout).decode(errors="ignore"), - ).encode() - - -pexpect.spawnbase.SpawnBase.read_nonblocking = enhanced_read_nonblocking - - -class StatusCodeEnum(Enum): - NORMAL = (0, "Normal") - TIMEOUT_ERR = (-1, "Timeout") - EOF_ERR = (-2, "EOF") - CRASH_ERR = (-3, "Crash happened") - BUSYLOOP_ERR = (-4, "Busy loop happened") - UNKNOWN_ERR = (-5, "Unknown") - - @staticmethod - def get_enum_msg_by_code(status_code): - for status in StatusCodeEnum: - if status.value[0] == status_code: - return status.value[1] - - -class connectNuttx(object): - def __init__( - self, - board, - vela_path, - dev, - log_path, - fs, - ota_version, - core, - sudo, - ci, - method, - target, - ): - self.board = board - self.path = vela_path - self.dev = dev - self.log_path = log_path - self.fs = fs - self.version = ota_version - self.sudo = sudo - self.ci = ci - self.core = core - self.method = method - self.target = target - self.enter = "\r" - self.debug_flag = 0 - self.format_str_len = 105 - # get PROMPT value and rate value - self.PROMPT = getConfigValue( - self.path, self.board, core=self.core, flag="NSH_PROMPT_STRING" - ) - self.rate = getConfigValue( - self.path, self.board, core=self.core, flag="UART0_BAUD" - ) - - if not os.path.exists(self.log_path): - os.makedirs(self.log_path) - - def setup(self): - self.start_time = time.strftime("%Y%m%d_%H%M%S", time.localtime()) - print("============ start at %s ============" % self.start_time) - if self.target == "sim": - # start nuttx for sim - start.startNuttx(self, self.path, self.log_path, self.board, self.sudo) - if self.target == "qemu": - start.startQemu(self, self.path, self.log_path, self.board, self.sudo) - if self.target in ["target", "module"]: - # start minicom - if self.method == "minicom": - start.startMinicom( - self, self.dev, self.board, self.log_path, self.core, self.rate - ) - else: - start.startSerial( - self, self.dev, self.board, self.log_path, self.core, self.rate - ) - - def sendcontrol(self, char): - char = char.lower() - a = ord(char) - if 97 <= a <= 122: - a = a - ord("a") + 1 - byte = bytes([a]) - return byte - d = { - "@": 0, - "`": 0, - "[": 27, - "{": 27, - "\\": 28, - "|": 28, - "]": 29, - "}": 29, - "^": 30, - "~": 30, - "_": 31, - "?": 127, - } - if char not in d: - return b"" - byte = bytes(d[char]) - return byte - - def sendControlCmd(self, cmd, expect="ap>", timeout=10): - if self.method == "minicom": - self.process.sendcontrol(cmd) - time.sleep(1) - self.process.sendcontrol(cmd) - else: - byte = self.sendcontrol(cmd) - time.sleep(1) - self.process.send(byte) - time.sleep(1) - self.process.send(byte) - - def print_format_str(self, string, type="text"): - str_prefix = "+" - str_suffix = "+" - - if type == "head": - rest_char_len = self.format_str_len - 2 - len(string) - half_len = int(rest_char_len / 2) - print( - str_prefix - + "-" * half_len - + string - + "-" * (rest_char_len - half_len) - + str_suffix - ) - elif type == "tail": - rest_char_len = self.format_str_len - 2 - print(str_prefix + "-" * rest_char_len + str_suffix) - elif type == "text": - str_prefix = "| " - str_suffix = " |" - rest_char_len = ( - self.format_str_len - len(str_prefix) - len(str_suffix) - len(string) - ) - print( - str_prefix - + string - + " " * (1 if rest_char_len < 1 else rest_char_len) - + str_suffix - ) - else: - print(string) - - def clean_buffer(self): - i = -1 - while True: - if ( - ( - self.process.before is not None - and self.process.before.decode(errors="ignore") - .replace("\r", "") - .replace("\n", "") - != "" - ) - or ( - self.process.after is not None - and self.process.after != pexpect.TIMEOUT - and self.process.after.decode(errors="ignore") - .replace("\r", "") - .replace("\n", "") - != "" - ) - or i == 0 - ): - i = self.process.expect( - [re.compile(b".+"), pexpect.TIMEOUT, pexpect.EOF], timeout=0.1 - ) - else: - while True: - try: - self.process.read_nonblocking( - size=self.process.maxread, timeout=0.1 - ) - except Exception: - break - self.process.before = b"" - self.process.after = b"" - break - - # send command to nsh - def sendCommand(self, cmd, *argc, **argv): - expect = [] - timeout = 10 - ret = StatusCodeEnum.NORMAL.value[0] - length = len(argc) - if length == 0: - expect.append(self.PROMPT) - else: - for i in argc: - expect.append(i) - length = len(argv) - if length != 0: - for key, value in argv.items(): - if key == "timeout": - timeout = value - if self.method != "minicom": - time.sleep(0.5) - if self.target == "qemu": - self.clean_buffer() - self.process.sendline(cmd) - else: - self.clean_buffer() - self.process.sendline(cmd) - time.sleep(0.1) - self.process.send("\r\n\r\n") - try: - for i in expect: - ret = self.process.expect(i, timeout=timeout) - except Exception as e: - self.print_format_str(" Catch Exception ", type="head") - - if isinstance(e, pexpect.TIMEOUT): - ret = StatusCodeEnum.TIMEOUT_ERR.value[0] - - elif isinstance(e, pexpect.EOF): - ret = StatusCodeEnum.EOF_ERR.value[0] - self.print_format_str(f"An pexpect.EOF error occurred: {str(e)}") - - else: - ret = StatusCodeEnum.UNKNOWN_ERR.value[0] - self.print_format_str(f"An unexpected error occurred: {str(e)}") - - self.print_format_str(" Result ", type="head") - self.print_format_str(f"Command : '{cmd}'") - self.print_format_str(f"Expect value: {str(expect)}") - self.print_format_str(f"Timeout : {timeout}s") - self.print_format_str( - f"Test result : {StatusCodeEnum.get_enum_msg_by_code(ret)}" - ) - self.print_format_str("", type="tail") - - finally: - self.debug(cmd, ret) - - if self.method != "minicom": - time.sleep(0.5) - - return ret - - def switch_to_original_core(self): - if self.target == "target": - self.sendControlCmd("c") - if self.core != "ap": - self.process.sendline("cu -l /dev/tty%s\n" % self.core.upper()) - self.process.expect_exact(self.PROMPT) - - def debug(self, cmd, ret): - if self.debug_flag: - print("********************* DEBUG START ********************") - if cmd == "\n": - cmd = r"\n" - print("cmd: {}".format(cmd)) - print("ret: {}".format(ret)) - print("before: {}".format(self.process.before.decode(errors="ignore"))) - print("after: {}".format(self.process.after.decode(errors="ignore"))) - print("buffer: {}".format(self.process.buffer.decode(errors="ignore"))) - print("********************** DEBUG END **********************") - - def cleanup(self): - if self.target == "sim": - self.process.sendline("poweroff") - if self.target == "qemu": - self.sendControlCmd("a", self.PROMPT) - self.process.sendline("x") - - -class start: - def startMinicom(self, dev, board, log_path, core, rate): - self.log = "{}/{}_{}.cap".format(log_path, dev[-4:], self.start_time) - self.process = pexpect.spawn( - r"sudo minicom -D {} -b {} -o -C {}".format(dev, rate, self.log), - maxread=200000, - ) - self.process.expect("Welcome to minicom") - self.switch_to_original_core() - - def startSerial(self, dev, board, log_path, core, rate): - self.log = "{}/{}_{}.cap".format(log_path, dev[-4:], self.start_time) - self.logFile = open(self.log, "ab+") - self.set = serial.Serial(port=dev, baudrate=int(rate)) - self.process = pexpect.fdpexpect.fdspawn( - self.set, "wb", maxread=20000, logfile=self.logFile - ) - self.switch_to_original_core() - - def startNuttx(self, path, log_path, board="sim", sudo=False): - os.chdir(path) - self.log = "{}/{}_{}.log".format(log_path, board, self.start_time) - if sudo: - if board in ["sim_rpserver", "sim_rpproxy"]: - os.chdir(path) - self.process = pexpect.spawn( - "bash", ["-c", "sudo ./rpserver/nuttx/nuttx | tee %s" % self.log] - ) - else: - self.process = pexpect.spawn( - "bash", ["-c", "sudo ./nuttx | tee %s" % self.log] - ) - else: - self.process = pexpect.spawn("bash", ["-c", "./nuttx | tee %s" % self.log]) - self.process.expect(self.PROMPT) - - def startQemu(self, path, log_path, board="qemu", sudo=False): - os.chdir(path) - self.log = "{}/{}_{}.log".format(log_path, board, self.start_time) - flag1 = getConfigValue(path, board, core=None, flag="ARCH_CHIP") - if flag1 == "imx6": - self.process = pexpect.spawn( - "bash", - [ - "-c", - "qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -kernel ./nuttx -nographic | tee %s" - % self.log, - ], - ) - if flag1 == "qemu-rv": - flag2 = getConfigValue(path, board, core=None, flag="ARCH_RV64") - options = "" - if flag2: - riscv = "qemu-system-riscv64" - else: - riscv = "qemu-system-riscv32" - fs_flag = getConfigValue(path, board, core=None, flag="DRIVERS_VIRTIO_BLK") - if fs_flag: - os.system("dd if=/dev/zero of=fatfs.img bs=512 count=128K") - os.system("mkfs.fat fatfs.img") - os.system("chmod 777 ./fatfs.img") - options = ( - "-drive index=0,id=userdata,if=none,format=raw,file=./fatfs.img " - "-device virtio-blk-device,bus=virtio-mmio-bus.0,drive=userdata" - ) - self.process = pexpect.spawn( - "bash", - [ - "-c", - "%s -M virt -bios ./nuttx -nographic %s | tee %s" - % (riscv, options, self.log), - ], - ) - self.process.expect(self.PROMPT) - - -def runCmd(cmd): - p = subprocess.Popen( - cmd, - shell=True, - stdin=subprocess.PIPE, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - ) - - stdout, stderr = p.communicate() - recode = p.returncode - - if recode != 0: - print("Debug: run command '%s' failed" % cmd) - - return stdout - - -# find file -def findFile(path, flag, board, core=None, match=True): - fList = [] - for root, dirs, files in os.walk(path): - for name in files: - if not match and flag in name: - fList.append(os.path.join(root, name)) - if match and name == flag and ".o" not in name: - fList.append(os.path.join(root, name)) - if len(fList) != 1: - fList = [x for x in fList if board in x and core + "/" in x] - print(fList) - return fList - - -# get CONFIG_NSH_PROMPT_STRING value -def getConfigValue(path, board, core, flag): - value = "" - l1 = findFile(path, ".config", board, core=core) - with open(l1[0], "r+") as f: - lines = f.readlines() - f.close() - print(lines) - print(flag) - for line in lines: - if flag + "=" in line: - value = line.split("=")[1] - if '"' in value: - value = value.strip('"').strip() - print(value) - return value - - -# read log and extract timestamp -def getTimestamp(filename, str1, str2, pattern): - with open(filename, "r") as f: - buff = f.read() - pat = re.compile(str1 + "(.*?)" + str2, re.S) - result = pat.findall(buff) - timestamp = re.findall(pattern, str(result)) # extract timestamp - return timestamp - - -# calculate the time difference for each time -def getDif(timestamp, rateANDinterance): - lst = [] - for i in range(1, len(timestamp)): - difts = int(timestamp[i]) - int(timestamp[i - 1]) - float_num = (difts / 1000000) - rateANDinterance - lst.append(float_num) - return lst - - -# read log -def getLog(filename, str1, str2): - l1 = [] - with open(filename, "r", encoding="utf-8", errors="ignore") as f: - buff = f.read() - f.close() - pat = re.compile(str1 + "(.*?)" + str2, re.S) - result = pat.findall(buff) - - if "gtest" in str1: - return result[0].strip("\n") - else: - # add line to l1 - for i in result[0].strip("\n").split("\n"): - l1.append(i) - return l1 - - -def rmfile(p, core, file): - if p.core == core: - p.sendCommand("rm -r" + file) - else: - p.process.sendline("cu -l /dev/tty" + core.upper()) - p.sendCommand("\n", core, flag=core + ">") - p.sendCommand("rm -r " + file, core, flag=core + ">") - if p.core == "ap": - p.sendControlCmd("c") - else: - p.switch_to_original_core(p) diff --git a/tools/ci/testrun/utils/data_model.py b/tools/ci/testrun/utils/data_model.py deleted file mode 100644 index ada95415b22..00000000000 --- a/tools/ci/testrun/utils/data_model.py +++ /dev/null @@ -1,257 +0,0 @@ -############################################################################ -# tools/ci/testrun/utils/data_model.py -# -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. The -# ASF licenses this file to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance with the -# License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -############################################################################ - -import re -from datetime import datetime -from typing import Dict, List - -""" -cmocka.json -""" - -Passed = "Passed" -Failed = "Failed" -Unexecuted = "Unexecuted" - - -class CaseInfo: - def __init__(self, test_suite_name, test_case_name, status, log=None): - self.test_suite_name = test_suite_name - # case name,e.g. "TestNuttxMm01" - self.test_case_name = test_case_name - # result: Passed or Failed - self.status = status - # log - self.log: List = [""] if log is None else log - - -class SuiteInfo: - def __init__(self, test_suite_name): - # suite name, e.g. "NuttxMmTestSuites" - self.test_suite_name = test_suite_name - # all test cases in the current test suite - self.test_cases: Dict[str, CaseInfo] = dict() - # number of cases passed in the current test suites - self.passed_count = 0 - # number of cases failed in the current test suites - self.failed_count = 0 - # case run count - self.run_count = 0 - # unexecuted count - self.unexecuted_count = 0 - # number of cases in the current test suites - self.cases_count = 0 - # suite run flag - self.is_suite_run = False - - -class CmockaSummary: - def __init__(self, duration=0): - # number of all test suites - self.total_suites_count = 0 - # all test cases number - self.total_cases_count = 0 - # number of all passed cases - self.total_passed_count = 0 - # number of all failed cases - self.total_failed_count = 0 - # number of all unknown cases - self.total_unexecuted_count = 0 - # duration - self.duration = duration - - -class CmockaSingleCoreRecord: - def __init__(self, lines, core="", board="", log="", duration=0): - # create time - self.create_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S") - # core - self.core = "" if core is None else core - # board - self.board = "" if board is None else board - # cmocka info - self.test_suites: Dict[str, SuiteInfo] = dict() - # summary - self.summary = CmockaSummary(duration) - # log path - self.log = "" if log is None else log - # bad_case - self.bad_case_tip = "" - - suite_pattern = r"\] (?P[a-zA-Z]*TestSuites)" - case_pattern = r"\]\s+(?PTestNuttx\w+)" - lines_iter = iter(lines) - - current_suite = None - while True: - try: - line = next(lines_iter) - if (suite_match := re.search(suite_pattern, line)) is not None: - current_suite = suite_match.group("test_suite_name") - - elif ( - current_suite is not None - and (case_match := re.search(case_pattern, line)) is not None - ): - current_case = case_match.group("test_case_name") - self.append(CaseInfo(current_suite, current_case, Unexecuted)) - - except StopIteration: - break - - def append(self, object: CaseInfo): - suite: SuiteInfo = self.test_suites.get(object.test_suite_name) - if suite is None: - suite = SuiteInfo(object.test_suite_name) - self.test_suites.update({object.test_suite_name: suite}) - suite.test_cases.update({object.test_case_name: object}) - - passed_count = 0 - failed_count = 0 - unexecuted_count = 0 - - test_case: CaseInfo - for test_case in suite.test_cases.values(): - if test_case.status == Passed: - passed_count += 1 - elif test_case.status == Failed: - failed_count += 1 - else: - unexecuted_count += 1 - suite.passed_count = passed_count - suite.failed_count = failed_count - suite.unexecuted_count = unexecuted_count - suite.run_count = passed_count + failed_count - suite.cases_count = passed_count + failed_count + unexecuted_count - if passed_count + failed_count != 0: - suite.is_suite_run = True - - total_passed_count = 0 - total_failed_count = 0 - total_unexecuted_count = 0 - total_cases_count = 0 - - suite: SuiteInfo - for suite in self.test_suites.values(): - total_passed_count += suite.passed_count - total_failed_count += suite.failed_count - total_unexecuted_count += suite.unexecuted_count - total_cases_count += suite.cases_count - - self.summary.total_passed_count = total_passed_count - self.summary.total_failed_count = total_failed_count - self.summary.total_unexecuted_count = total_unexecuted_count - self.summary.total_cases_count = total_cases_count - self.summary.total_suites_count = len(self.test_suites) - - def process(self, lines, err_code): - # regular expression - suite_start_pattern = r"\] (?P[a-zA-Z]*TestSuites): Running (?P\d+) test\(s\)" - case_run_pattern = r"\[\s+RUN\s+\] (?PTestNuttx\w+)" - case_pass_pattern = r"\[\s+OK\s+\] (?PTestNuttx\w+)" - case_fail_pattern = r"\[\s+FAILED\s+\] (?PTestNuttx\w+)" - - lines_iter = iter(lines) - line = next(lines_iter) - while True: - try: - interrupt_flag = False - # matching new test suites - if ( - suite_start_match := re.search(suite_start_pattern, line) - ) is not None: - test_suite_name = suite_start_match.group("test_suite_name") - cases_count = int(suite_start_match.group("cases_count")) - suite_end_pattern = r"{}: {} test(s) run.".format( - test_suite_name, cases_count - ) - - line = next(lines_iter) - while True: - if ( - case_run_match := re.search(case_run_pattern, line) - ) is not None: - test_case_name = case_run_match.group("test_case_name") - log = [line] - - while True: - try: - line = next(lines_iter) - log.append(line) - except StopIteration: - self.append( - CaseInfo( - test_suite_name, test_case_name, Failed, log - ) - ) - if err_code == -3: - self.bad_case_tip = f"This case was not executed, \ - because crash occurred after running '{test_case_name}'." - elif err_code == -4: - self.bad_case_tip = f"This case was not executed, \ - because no response for a long time after running '{test_case_name}'." - elif err_code == -1: - self.bad_case_tip = f"This case was not executed, \ - because the maximum waiting time has been exceeded \ - while running '{test_case_name}'." - else: - self.bad_case_tip = "This case was not executed due to unknown reasons." - raise StopIteration - - if re.search(case_pass_pattern, line) is not None: - self.append( - CaseInfo( - test_suite_name, test_case_name, Passed, log - ) - ) - break - - elif re.search(case_fail_pattern, line) is not None: - self.append( - CaseInfo( - test_suite_name, test_case_name, Failed, log - ) - ) - break - - elif re.search(suite_start_pattern, line) is not None: - self.append( - CaseInfo( - test_suite_name, test_case_name, Failed, log - ) - ) - interrupt_flag = True - break - - elif suite_end_pattern in line: - break - - if interrupt_flag: - break - - line = next(lines_iter) - - if interrupt_flag: - continue - line = next(lines_iter) - except StopIteration: - break