From 59968bf620359ca1afb79168bfcf87619f055488 Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Fri, 26 Jun 2026 11:51:00 +0200 Subject: [PATCH 1/2] ci: add stdbit.h test Test stdbit functions in CI. Signed-off-by: Michal Lenc --- boards/sim/sim/sim/configs/citest/defconfig | 2 ++ include/.gitignore | 1 + tools/ci/testrun/script/test_os/test_os.py | 7 +++++++ 3 files changed, 10 insertions(+) diff --git a/boards/sim/sim/sim/configs/citest/defconfig b/boards/sim/sim/sim/configs/citest/defconfig index 168ba984984fc..8844a44d40f9b 100644 --- a/boards/sim/sim/sim/configs/citest/defconfig +++ b/boards/sim/sim/sim/configs/citest/defconfig @@ -83,6 +83,7 @@ CONFIG_LIBC_MEMFD_ERROR=y CONFIG_LIBC_NETDB=y CONFIG_LIBC_NUMBERED_ARGS=y CONFIG_LIBC_SCANSET=y +CONFIG_LIBC_STDBIT_GENERIC=y CONFIG_LIBM=y CONFIG_LIBUV=y CONFIG_LIBUV_THREADPOOL_SIZE=4 @@ -149,6 +150,7 @@ CONFIG_TESTING_OPEN_MEMSTREAM=y CONFIG_TESTING_OSTEST=y CONFIG_TESTING_SCANFTEST=y CONFIG_TESTING_SCANFTEST_FNAME="/tmp/test.txt" +CONFIG_TESTING_STDBIT_TEST=y CONFIG_TESTS_TESTSUITES=y CONFIG_TLS_NCLEANUP=4 CONFIG_TLS_NELEM=16 diff --git a/include/.gitignore b/include/.gitignore index f80af3619d4ec..8d871d59851e9 100644 --- a/include/.gitignore +++ b/include/.gitignore @@ -15,3 +15,4 @@ /etl /minmea /sysinfo.h +/stdbit.h diff --git a/tools/ci/testrun/script/test_os/test_os.py b/tools/ci/testrun/script/test_os/test_os.py index 57d45977c2339..d288aede3ca11 100644 --- a/tools/ci/testrun/script/test_os/test_os.py +++ b/tools/ci/testrun/script/test_os/test_os.py @@ -77,6 +77,13 @@ def test_stdio(p): assert ret == 0 +def test_stdbit(p): + if p.board in do_not_support: + pytest.skip("unsupported at {}".format(p.board)) + ret = p.sendCommand("stdbit_test", "stdbit tests: SUCCESSFUL: 14; FAILED: 0") + assert ret == 0 + + @pytest.mark.run(order=-2) def test_fs_test(p): if p.board in do_not_support: From 26598e6cbd3073efcfc31529ef89c2f42cc7c531 Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Mon, 29 Jun 2026 08:44:52 +0200 Subject: [PATCH 2/2] test_os.py: fix foopencookie test spellcheck succesfull => successful Signed-off-by: Michal Lenc --- 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 d288aede3ca11..34d6118b66838 100644 --- a/tools/ci/testrun/script/test_os/test_os.py +++ b/tools/ci/testrun/script/test_os/test_os.py @@ -69,7 +69,7 @@ def test_getprime(p): def test_stdio(p): if p.board in do_not_support: pytest.skip("unsupported at {}".format(p.board)) - ret = p.sendCommand("fopencookie_test", "fopencokie tests were succesfull.") + ret = p.sendCommand("fopencookie_test", "fopencokie tests were successful.") assert ret == 0 ret = p.sendCommand("fmemopen_test", "FAILED: 0") assert ret == 0