Skip to content

Commit

Permalink
tests:update testcases
Browse files Browse the repository at this point in the history
Signed-off-by: v-wangshihang <[email protected]>
  • Loading branch information
w-shihang committed Dec 18, 2024
1 parent e3717b3 commit cee36e6
Show file tree
Hide file tree
Showing 6 changed files with 7,240 additions and 7,180 deletions.
1 change: 1 addition & 0 deletions tools/ci/testrun/script/test_example/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def test_popen(p):
assert ret == 0


@pytest.mark.skip
def test_usrsocktest(p):
ret = p.sendCommand("usrsocktest", "FAILED:0", timeout=60)
assert ret == 0
4 changes: 2 additions & 2 deletions tools/ci/testrun/script/test_framework/test_cmocka.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import pytest

pytestmark = [pytest.mark.common, pytest.mark.rv_virt]
pytestmark = [pytest.mark.common, pytest.mark.rv_virt, pytest.mark.goldfish_armeabi_v7a_ap]

cmocka_list_start = "cmocka_list_start"
cmocka_list_end = "cmocka_list_end"
Expand All @@ -49,7 +49,7 @@ def test_cmocka(p):
p.sendCommand(f"echo {cmocka_test_start}")
ret = p.sendCommand(
"cmocka --skip test_case_posix_timer|test_case_oneshot|write_default|read_default|burst_test|gpiotest01|"
"test_playback.*|test_interaction.*|test_stress.*|test_capture.*",
"test_playback.*|test_interaction.*|test_stress.*|test_capture.*|test_case_touchpanel",
"Cmocka Test Completed",
timeout=1200,
)
Expand Down
18 changes: 9 additions & 9 deletions tools/ci/testrun/script/test_libuv/test_libuv.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


class TestLibuv:
pytestmark = [pytest.mark.sim]
pytestmark = [pytest.mark.sim, pytest.mark.goldfish_armeabi_v7a_ap]

def test_test_macros(self, p):
ret = p.sendCommand(
Expand Down Expand Up @@ -254,13 +254,13 @@ def test_active(self, p):
ret = p.sendCommand("uv_run_tests active", ["not ok 1 -", "ok 1 -"], timeout=10)
assert ret == 1

@pytest.mark.skip
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)
Expand Down Expand Up @@ -299,13 +299,13 @@ def test_gettimeofday(self, p):
)
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_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(
Expand Down
Loading

0 comments on commit cee36e6

Please sign in to comment.