zephyr/tests/lib/sprintf
Keith Packard 33dedfbd7d tests/sprintf: Test floating printf on soft-fp targets too
There's no reason to limit testing floating point printf to platforms with
an FPU; neither the minimal C library nor picolibc even use floating point
instructions for printf. And even if they did, the toolchain should have
soft float support.

However, we do need to restrict picolibc testing to configurations with
floating point printf enabled.

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 tests: lib: sprintf: migrating lib tests to new ZTEST API 2022-08-19 20:45:19 +00:00
prj_picolibc_new.conf tests: lib: sprintf: migrating lib tests to new ZTEST API 2022-08-19 20:45:19 +00:00
prj_picolibc.conf tests: lib: sprintf: migrating lib tests to new ZTEST API 2022-08-19 20:45:19 +00:00
prj.conf tests/sprintf: Enable picolibc float I/O 2022-11-08 10:44:36 +01:00
README.txt
testcase.yaml tests: sprintf: cleanup test metadata 2023-05-25 04:44:11 -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