2023-02-19 04:33:21 +01:00
|
|
|
#!/usr/bin/env python3
|
2022-10-21 12:04:29 +02:00
|
|
|
# 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", 60)
|
|
|
|
assert ret == 0
|
|
|
|
|
|
|
|
|
|
|
|
def test_popen(p):
|
|
|
|
ret = p.sendCommand("popen", "Calling pclose()")
|
|
|
|
assert ret == 0
|
|
|
|
|
|
|
|
|
|
|
|
def test_usrsocktest(p):
|
2022-11-24 14:26:09 +01:00
|
|
|
ret = p.sendCommand("usrsocktest", "FAILED:0", 60)
|
2022-10-21 12:04:29 +02:00
|
|
|
assert ret == 0
|