ci: add fmemopen test and merge fopencookie and fmemopen to stdio test
CI test for fmemopen() function was added. The test was merged with fopencookie interface test and merged into single test_stdio. Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
parent
65ae8a545c
commit
51bae917b7
@ -81,6 +81,7 @@ CONFIG_SYSTEM_DUMPSTACK=y
|
|||||||
CONFIG_SYSTEM_NSH=y
|
CONFIG_SYSTEM_NSH=y
|
||||||
CONFIG_SYSTEM_POPEN=y
|
CONFIG_SYSTEM_POPEN=y
|
||||||
CONFIG_TESTING_CXXTEST=y
|
CONFIG_TESTING_CXXTEST=y
|
||||||
|
CONFIG_TESTING_FMEMOPEN_TEST=y
|
||||||
CONFIG_TESTING_FOPENCOOKIE_TEST=y
|
CONFIG_TESTING_FOPENCOOKIE_TEST=y
|
||||||
CONFIG_TESTING_FSTEST=y
|
CONFIG_TESTING_FSTEST=y
|
||||||
CONFIG_TESTING_FSTEST_MOUNTPT="/tmp"
|
CONFIG_TESTING_FSTEST_MOUNTPT="/tmp"
|
||||||
|
@ -39,11 +39,13 @@ def test_getprime(p):
|
|||||||
assert ret == 0
|
assert ret == 0
|
||||||
|
|
||||||
|
|
||||||
def test_fopencookie(p):
|
def test_stdio(p):
|
||||||
if p.board in do_not_support:
|
if p.board in do_not_support:
|
||||||
pytest.skip("unsupported at {}".format(p.board))
|
pytest.skip("unsupported at {}".format(p.board))
|
||||||
ret = p.sendCommand("fopencookie_test", "fopencokie tests were succesfull.")
|
ret = p.sendCommand("fopencookie_test", "fopencokie tests were succesfull.")
|
||||||
assert ret == 0
|
assert ret == 0
|
||||||
|
ret = p.sendCommand("fmemopen_test", "FAILED: 0")
|
||||||
|
assert ret == 0
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.run(order=-2)
|
@pytest.mark.run(order=-2)
|
||||||
|
Loading…
Reference in New Issue
Block a user