zephyr/tests/lib/sprintf
Keith Packard 51abcc3642 tests/sprintf: Test picolibc inexact floating point printf
Picolibc has two floating point output modules, the default, "exact",
module which meets the ISO/IEC 9899:2011 specification and a smaller
"inexact" version which does not meet those specifications. Add a test for
this latter version to make sure it meets some modest Zephyr requirements.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-05-26 09:55:52 -04:00
..
src tests/sprintf: Test floating printf on soft-fp targets too 2023-05-26 09:55:52 -04:00
cbprintf_nano.conf
CMakeLists.txt
prj_new.conf
prj_picolibc_new.conf tests/sprintf: Enable picolibc floating point printf for new test 2023-05-26 09:55:52 -04:00
prj_picolibc.conf tests/sprintf: Increase test stack size for picolibc 2023-05-26 09:55:52 -04:00
prj.conf
README.txt
testcase.yaml tests/sprintf: Test picolibc inexact floating point printf 2023-05-26 09:55:52 -04:00

Title: sprintf() APIs

Description:

This test verifies that sprintf() and its variants operate as expected.

--------------------------------------------------------------------------------

Building and Running Project:

This project outputs to the console.  It can be built and executed
on QEMU as follows:

    make run

--------------------------------------------------------------------------------

Troubleshooting:

Problems caused by out-dated project information can be addressed by
issuing one of the following commands then rebuilding the project:

    make clean          # discard results of previous builds
                        # but keep existing configuration info
or
    make pristine       # discard results of previous builds
                        # and restore pre-defined configuration info

--------------------------------------------------------------------------------
Sample Output:

tc_start() - Test sprintf APIs

===================================================================
Testing sprintf() with integers ....
Testing snprintf() ....
Testing vsprintf() ....
Testing vsnprintf() ....
Testing sprintf() with strings ....
Testing sprintf() with misc options ....
Testing sprintf() with doubles ....
===================================================================
PASS - RegressionTask.
===================================================================
PROJECT EXECUTION SUCCESSFUL