renesas/kms-tests.git, branch master KMS test framework tests: Add pixel blend mode test 2022-07-31T18:50:42+00:00 Takanari Hayama taki@igel.co.jp 2022-07-04T02:56:32+00:00 2264236eefd15450320c0cdb34fa07ac0881f713 Add a test that blends a plane with different pixel blend modes. Signed-off-by: Takanari Hayama <taki@igel.co.jp> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Add a test that blends a plane with different pixel blend modes.

Signed-off-by: Takanari Hayama <taki@igel.co.jp>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kmstest: Support specifying pixel blend mode for planes 2022-07-31T17:13:40+00:00 Takanari Hayama taki@igel.co.jp 2022-07-04T02:56:31+00:00 53e6bf2c4b018ac851685f010cc6daddf63cb3a6 Add an optional pixel blend mode argument to the atomic_plane_set() function to specify the pixel blend mode for the plane. Signed-off-by: Takanari Hayama <taki@igel.co.jp> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Add an optional pixel blend mode argument to the atomic_plane_set()
function to specify the pixel blend mode for the plane.

Signed-off-by: Takanari Hayama <taki@igel.co.jp>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kmstest: Support enum property type 2022-07-31T17:13:40+00:00 Takanari Hayama taki@igel.co.jp 2022-07-04T02:56:30+00:00 b673ea4d97c39ee8ea80574ef3bd1ba8a59450fa Add a support for enum property type to AtomicRequest. Signed-off-by: Takanari Hayama <taki@igel.co.jp> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Add a support for enum property type to AtomicRequest.

Signed-off-by: Takanari Hayama <taki@igel.co.jp>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kmstest: Raise clear exception when property is not found 2022-07-31T17:13:40+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-07-31T16:41:09+00:00 780538db85f68288a58fb166d015e4b38b5ac633 When converting a property value string to an integer, if the property is not found, an AttributeError exception is raised and reports that "'NoneType' object has no attribute 'type'". This isn't very clear, replace it with a RuntimeError with a proper message. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
When converting a property value string to an integer, if the property
is not found, an AttributeError exception is raised and reports that
"'NoneType' object has no attribute 'type'". This isn't very clear,
replace it with a RuntimeError with a proper message.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
tests: Don't skip formats and plane-position tests on unconnected connector 2022-07-31T17:13:40+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-07-31T16:59:13+00:00 a506d11d699deca92e5e62e214d206c5917e20c7 The formats and plane-position tests need one connected connector. Don't skip them upon the first unconnected connector, only when no connected connector can be found. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
The formats and plane-position tests need one connected connector. Don't
skip them upon the first unconnected connector, only when no connected
connector can be found.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kmstest: Implement test runner when executed directly 2022-07-31T15:15:43+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-07-31T15:08:44+00:00 385b653e229ce1c7f1115005d4cb30edbcb884a0 Run all tests from the current directory when the kmstest.py script it executed directly, as opposed to being imported by individual tests. This simplifies running all tests. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Run all tests from the current directory when the kmstest.py script it
executed directly, as opposed to being imported by individual tests.
This simplifies running all tests.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
tests: Only call execute() if the test is run directly 2022-07-31T15:15:43+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-07-31T14:46:34+00:00 2ce4e51cfc5be4b4aeeae331f9accffad46e6e1b Only run a test automatically if the Python test script is executed directly. This will allow importing tests as modules in a test runner. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Only run a test automatically if the Python test script is executed
directly. This will allow importing tests as modules in a test runner.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
tests: crc: Skip test if CRC support isn't available 2022-07-31T15:15:43+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-07-31T14:59:29+00:00 986f7f64845736c6bdb7bf1380a1c3ac06db48fd If CRC support isn't available (most likely caused by debugfs not being mounted), the CRCReader constructor will throw an exception that the crc test doesn't handle. Move construction of the CRCReader earlier and skip the test if it fails. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
If CRC support isn't available (most likely caused by debugfs not being
mounted), the CRCReader constructor will throw an exception that the crc
test doesn't handle. Move construction of the CRCReader earlier and skip
the test if it fails.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kmstest: Fix exception handling in CRCReader constructor and destructor 2022-07-31T15:15:43+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-07-31T14:56:24+00:00 96082f398145757ef092ef19af53f12666b69552 If an exception occurs in the CRCReader constructor, the self.dir, self.ctrl and self.data members may not be set. This causes another exception to be thrown by the destructor when it tries to access those members. Fix it by initializing all the members first, and only closing the dir and ctrl file descriptors if they have been successfully opened. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
If an exception occurs in the CRCReader constructor, the self.dir,
self.ctrl and self.data members may not be set. This causes another
exception to be thrown by the destructor when it tries to access those
members. Fix it by initializing all the members first, and only closing
the dir and ctrl file descriptors if they have been successfully opened.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kmstest: Fix CRC directory name string 2022-07-31T15:15:43+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-07-31T14:52:15+00:00 b4da7b2eacdfa8e4a88cbe190d79a0cb11f82b92 The CRC directory name string was converted to a Python formatted string literal incorrectly, with the f prefix within the string instead of just before it. Fix it. Fixes: dcbc93a117b0 ("tests: Convert to formatted string literals") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
The CRC directory name string was converted to a Python formatted string
literal incorrectly, with the f prefix within the string instead of just
before it. Fix it.

Fixes: dcbc93a117b0 ("tests: Convert to formatted string literals")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>