Chapter 213. Test Programs

Table of Contents

213.1. Test Programs

213.1. Test Programs

Some LVGL specific tests are built and can be used to verify correct operation of the LVGL library.

  1. lv_demo_stress

    This is a stress test that executes for a number of iterations and is used to detect memory leaks in the LVGL subsystem.

  2. lv_demo_widgets

    This is the standard LVGL interactive widgets test that shows some of the standard LVGL functionality across a series of scrollable tabs.

  3. lv_demo_benchmark

    When CYGFUN_LVGL_SYSMON is configured this demo is provided to report some basic performance information for the LVGL configuration. The application includes a slideshow configuration of the widgets as well as performing various LVGL operations prior to that final test.

    For example, the following is the tail of the diagnostic output from a run of the test on a stm32f746g_disco platform configured for double-buffering with the system monitor logging directed to the diagnostic LOG output:

    Example 213.1. lv_demo_benchmark test run

    Benchmark Summary (9.3.0 )
    Name, Avg. CPU, Avg. FPS, Avg. time, render time, flush time
    Empty screen, 10%, 24, 0, 0, 0
    Moving wallpaper, 25%, 24, 10, 10, 0
    Single rectangle, 2%, 24, 0, 0, 0
    Multiple rectangles, 22%, 24, 8, 8, 0
    Multiple RGB images, 3%, 24, 0, 0, 0
    Multiple ARGB images, 0%, 24, 0, 0, 0
    Rotated ARGB images, 23%, 24, 10, 10, 0
    Multiple labels, 47%, 25, 19, 1, 18
    Screen sized text, 74%, 24, 30, 30, 0
    Multiple arcs, 11%, 24, 0, 0, 0
    Containers, 16%, 24, 10, 10, 0
    Containers with overlay, 40%, 24, 16, 10, 6
    Containers with opa, 21%, 24, 10, 10, 0
    Containers with opa_layer, 33%, 24, 20, 20, 0
    Containers with scrolling, 53%, 25, 20, 20, 0
    Widgets demo, 85%, 13, 38, 38, 0
    All scenes avg.,29%, 23, 11, 10, 1
    PASS:<Benchmark done>
    EXIT:<done>