zephyr/tests/lib/mem_alloc
Keith Packard 4134858868 tests/samples: Replace minimal libc malloc configs with common ones
With the minimal C library malloc implementation moving to libc/common, all
of the related Kconfig variables have also changed. Update uses within the
tree.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-27 20:17:24 +09:00
..
src tests/samples: Replace minimal libc malloc configs with common ones 2023-04-27 20:17:24 +09:00
CMakeLists.txt
README.txt
prj.conf tests/samples: Replace minimal libc malloc configs with common ones 2023-04-27 20:17:24 +09:00
prj_negative_testing.conf tests/samples: Replace minimal libc malloc configs with common ones 2023-04-27 20:17:24 +09:00
prj_newlib.conf tests: mem_alloc: move to new ztest API 2023-02-24 09:16:42 +01:00
prj_newlibnano.conf tests: mem_alloc: move to new ztest API 2023-02-24 09:16:42 +01:00
prj_picolibc.conf tests: mem_alloc: move to new ztest API 2023-02-24 09:16:42 +01:00
testcase.yaml tests: mem_alloc: remove fixed testcase names from yaml 2023-02-24 09:16:42 +01:00

README.txt

Title: Kernel Access to Dynamic Memory Allocation functions provided by
Standard Libraries

Description:

This test verifies kernel access to the dynamic memory allocation functions
provided by standard C libraries supported in Zephyr:
NEWLIB and MINIMAL_LIB.
It is intended to catch issues in which a library is completely absent
or non-functional, and is NOT intended to be a comprehensive test suite
of all functionality provided by the libraries.

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

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 outdated 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:

***** BOOTING ZEPHYR OS vxxxx - BUILD: xxxx *****
Running test suite test_c_lib_dynamic_memalloc
===================================================================
starting test - test_malloc
PASS - test_malloc
===================================================================
starting test - test_free
PASS - test_free
===================================================================
starting test - test_calloc
PASS - test_calloc
===================================================================
starting test - test_realloc
PASS - test_realloc
===================================================================
starting test - test_reallocarray
PASS - test_reallocarray
===================================================================
starting test - test_memalloc_all
PASS - test_memalloc_all
===================================================================
starting test - test_memalloc_max
PASS - test_memalloc_max
===================================================================
===================================================================
PROJECT EXECUTION SUCCESSFUL