Skip to content
Snippets Groups Projects
Commit d5b89104 authored by Maíra Canal's avatar Maíra Canal Committed by Tales Aparecida
Browse files

drm/amd/display: Introduce KUnit tests to the bw_fixed library


KUnit unifies the test structure and provides helper tools that simplify
the development of tests. Basic use case allows running tests as regular
processes, which makes easier to run unit tests on a development machine
and to integrate the tests in a CI system.

This commit introduces a unit test to the bw_fixed library, which
performs a lot of the mathematical operations involving fixed-point
arithmetic and the conversion of integers to fixed-point representation
inside the Display Mode Library.

As fixed-point representation is the base foundation of the DML calcs
operations, this unit tests intend to assure the proper functioning of
the basic mathematical operations of fixed-point arithmetic, such as
multiplication, conversion from fractional to fixed-point number, and
more.  You can run it with: ./tools/testing/kunit/kunit.py run \
	--arch=x86_64 \
	--kunitconfig=drivers/gpu/drm/amd/display/tests/

Signed-off-by: default avatarMaíra Canal <maira.canal@usp.br>
Co-developed-by: default avatarMagali Lemes <magalilemes00@gmail.com>
Signed-off-by: default avatarMagali Lemes <magalilemes00@gmail.com>
Co-developed-by: default avatarTales Aparecida <tales.aparecida@gmail.com>
Signed-off-by: default avatarTales Aparecida <tales.aparecida@gmail.com>
parent 27fc4bb7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment