You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/10/19 13:39:30 UTC

[nuttx] branch master updated (93312c6196 -> 2d8fc9522f)

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

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


    from 93312c6196 libdsp: update LP_FILTER comment
     new 7463052c8e ci: fix scanf CI test
     new f43701c7c9 ci: fix file system CI test
     new 2d8fc9522f ci: add error status check for ostest

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 boards/sim/sim/sim/configs/citest/defconfig          | 4 ++++
 tools/ci/testrun/script/test_example/test_example.py | 3 ---
 tools/ci/testrun/script/test_os/test_os.py           | 6 +++---
 3 files changed, 7 insertions(+), 6 deletions(-)


[nuttx] 03/03: ci: add error status check for ostest

Posted by xi...@apache.org.
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 2d8fc9522f5c2ad940f1d7d3b9fbeda1d1b073de
Author: Michal Lenc <mi...@seznam.cz>
AuthorDate: Wed Oct 18 12:25:28 2023 +0200

    ci: add error status check for ostest
    
    ostest should return OK (0) if successful.
    
    Signed-off-by: Michal Lenc <mi...@seznam.cz>
---
 tools/ci/testrun/script/test_os/test_os.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/ci/testrun/script/test_os/test_os.py b/tools/ci/testrun/script/test_os/test_os.py
index c25bd8ba3d..030872c063 100644
--- a/tools/ci/testrun/script/test_os/test_os.py
+++ b/tools/ci/testrun/script/test_os/test_os.py
@@ -7,7 +7,7 @@ do_not_support = ["sabre-6quad", "rv-virt", "rv-virt64", "esp32c3-devkit", "bl60
 
 
 def test_ostest(p):
-    ret = p.sendCommand("ostest", "Exiting with status", 300)
+    ret = p.sendCommand("ostest", "Exiting with status 0", 300)
     assert ret == 0
 
 


[nuttx] 02/03: ci: fix file system CI test

Posted by xi...@apache.org.
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 f43701c7c9a1d03c9046407e14b270d30bed77fd
Author: Michal Lenc <mi...@seznam.cz>
AuthorDate: Tue Oct 17 22:57:12 2023 +0200

    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 <mi...@seznam.cz>
---
 boards/sim/sim/sim/configs/citest/defconfig | 1 +
 tools/ci/testrun/script/test_os/test_os.py  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/boards/sim/sim/sim/configs/citest/defconfig b/boards/sim/sim/sim/configs/citest/defconfig
index 8292eb1f7c..6d59280f63 100644
--- a/boards/sim/sim/sim/configs/citest/defconfig
+++ b/boards/sim/sim/sim/configs/citest/defconfig
@@ -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
diff --git a/tools/ci/testrun/script/test_os/test_os.py b/tools/ci/testrun/script/test_os/test_os.py
index 6f25c59a05..c25bd8ba3d 100644
--- a/tools/ci/testrun/script/test_os/test_os.py
+++ b/tools/ci/testrun/script/test_os/test_os.py
@@ -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


[nuttx] 01/03: ci: fix scanf CI test

Posted by xi...@apache.org.
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 7463052c8ef7db1bfaa907b73ed4f3b1a4cf1b14
Author: Michal Lenc <mi...@seznam.cz>
AuthorDate: Tue Oct 17 13:54:04 2023 +0200

    ci: fix scanf CI test
    
    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 <mi...@seznam.cz>
---
 boards/sim/sim/sim/configs/citest/defconfig          | 3 +++
 tools/ci/testrun/script/test_example/test_example.py | 3 ---
 tools/ci/testrun/script/test_os/test_os.py           | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/boards/sim/sim/sim/configs/citest/defconfig b/boards/sim/sim/sim/configs/citest/defconfig
index 31128e6d27..8292eb1f7c 100644
--- a/boards/sim/sim/sim/configs/citest/defconfig
+++ b/boards/sim/sim/sim/configs/citest/defconfig
@@ -50,10 +50,12 @@ CONFIG_IOEXPANDER_DUMMY=y
 CONFIG_LIBCXX=y
 CONFIG_LIBC_ENVPATH=y
 CONFIG_LIBC_EXECFUNCS=y
+CONFIG_LIBC_FLOATINGPOINT=y
 CONFIG_LIBC_LOCALE_CATALOG=y
 CONFIG_LIBC_LOCALE_GETTEXT=y
 CONFIG_LIBC_MAX_EXITFUNS=1
 CONFIG_LIBC_NUMBERED_ARGS=y
+CONFIG_LIBC_SCANSET=y
 CONFIG_NET=y
 CONFIG_NET_USRSOCK=y
 CONFIG_NSH_ARCHINIT=y
@@ -85,3 +87,4 @@ CONFIG_TESTING_GETPRIME=y
 CONFIG_TESTING_MM=y
 CONFIG_TESTING_OSTEST=y
 CONFIG_TESTING_SCANFTEST=y
+CONFIG_TESTING_SCANFTEST_FNAME="/tmp/test.txt"
diff --git a/tools/ci/testrun/script/test_example/test_example.py b/tools/ci/testrun/script/test_example/test_example.py
index 629c1db172..9fac6af202 100644
--- a/tools/ci/testrun/script/test_example/test_example.py
+++ b/tools/ci/testrun/script/test_example/test_example.py
@@ -16,11 +16,8 @@ def test_helloxx(p):
 
 
 def test_pipe(p):
-    p.sendCommand("umount /tmp")
     ret = p.sendCommand("pipe", "redirect_reader: Returning success", 60)
     assert ret == 0
-    p.sendCommand("\n")
-    p.sendCommand("mount -t tmpfs /tmp")
 
 
 def test_popen(p):
diff --git a/tools/ci/testrun/script/test_os/test_os.py b/tools/ci/testrun/script/test_os/test_os.py
index 0c7f6f2c53..6f25c59a05 100644
--- a/tools/ci/testrun/script/test_os/test_os.py
+++ b/tools/ci/testrun/script/test_os/test_os.py
@@ -28,7 +28,7 @@ def test_cxxtest(p):
 def test_scanftest(p):
     if p.board in do_not_support:
         pytest.skip("unsupported at {}".format(p.board))
-    ret = p.sendCommand("scanftest", "Test #25")
+    ret = p.sendCommand("scanftest", "FAILED: 0")
     assert ret == 0