7463052c8e
Scanf CI test was not testing the correct behavior of scanf and just checked whether program did not end with hard fault. This adds functionality check and required configuration options to run scanf test. Signed-off-by: Michal Lenc <michallenc@seznam.cz>
31 lines
606 B
Python
31 lines
606 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", 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", 60)
|
|
assert ret == 0
|