This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6e4ffb9ea1b640e0c707f5fb2a71d6712f8efa01
Author: Michal Lenc <michall...@seznam.cz>
AuthorDate: Tue Oct 17 09:33:10 2023 +0200

    ci: add fopencookie test
    
    This adds fopencookie test for simulator CI.
    
    Signed-off-by: Michal Lenc <michall...@seznam.cz>
---
 boards/sim/sim/sim/configs/citest/defconfig | 1 +
 tools/ci/testrun/script/test_os/test_os.py  | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/boards/sim/sim/sim/configs/citest/defconfig 
b/boards/sim/sim/sim/configs/citest/defconfig
index ef5d4d996f..31128e6d27 100644
--- a/boards/sim/sim/sim/configs/citest/defconfig
+++ b/boards/sim/sim/sim/configs/citest/defconfig
@@ -79,6 +79,7 @@ CONFIG_SYSTEM_DUMPSTACK=y
 CONFIG_SYSTEM_NSH=y
 CONFIG_SYSTEM_POPEN=y
 CONFIG_TESTING_CXXTEST=y
+CONFIG_TESTING_FOPENCOOKIE_TEST=y
 CONFIG_TESTING_FSTEST=y
 CONFIG_TESTING_GETPRIME=y
 CONFIG_TESTING_MM=y
diff --git a/tools/ci/testrun/script/test_os/test_os.py 
b/tools/ci/testrun/script/test_os/test_os.py
index 1d34fde79f..0c7f6f2c53 100644
--- a/tools/ci/testrun/script/test_os/test_os.py
+++ b/tools/ci/testrun/script/test_os/test_os.py
@@ -39,6 +39,13 @@ def test_getprime(p):
     assert ret == 0
 
 
+def test_fopencookie(p):
+    if p.board in do_not_support:
+        pytest.skip("unsupported at {}".format(p.board))
+    ret = p.sendCommand("fopencookie_test", "fopencokie tests were 
succesfull.")
+    assert ret == 0
+
+
 @pytest.mark.run(order=-2)
 def test_fs_test(p):
     if p.board in do_not_support:

Reply via email to