8ff3b90742
Signed-off-by: vela-mib <vela-mib@xiaomi.com>
31 lines
622 B
Python
31 lines
622 B
Python
#!/usr/bin/env python3
|
|
# 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
|