ci: fix file system CI test
File system 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 FS test. Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
parent
7463052c8e
commit
f43701c7c9
@ -83,6 +83,7 @@ CONFIG_SYSTEM_POPEN=y
|
||||
CONFIG_TESTING_CXXTEST=y
|
||||
CONFIG_TESTING_FOPENCOOKIE_TEST=y
|
||||
CONFIG_TESTING_FSTEST=y
|
||||
CONFIG_TESTING_FSTEST_MOUNTPT="/tmp"
|
||||
CONFIG_TESTING_GETPRIME=y
|
||||
CONFIG_TESTING_MM=y
|
||||
CONFIG_TESTING_OSTEST=y
|
||||
|
@ -52,7 +52,7 @@ def test_fs_test(p):
|
||||
pytest.skip("unsupported at {}".format(p.board))
|
||||
fstest_dir = "{}/{}_fstest".format(p.fs, p.core)
|
||||
p.sendCommand("mkdir %s" % fstest_dir)
|
||||
ret = p.sendCommand("fstest -n 10 -m %s" % fstest_dir, "Final memory usage", 2000)
|
||||
ret = p.sendCommand("fstest -n 10 -m %s" % fstest_dir, "FAILED: 0", 2000)
|
||||
p.sendCommand("ls %s" % fstest_dir)
|
||||
p.sendCommand("rmdir %s" % fstest_dir)
|
||||
assert ret == 0
|
||||
|
Loading…
Reference in New Issue
Block a user