[igt-dev] [PATCH v6 0/8] Test cases for fbdev

Thomas Zimmermann tzimmermann at suse.de
Fri Nov 20 10:52:09 UTC 2020


This patchset adds read and write tests for fbdev. It compares the content
of the framebuffer and reference buffer. A number of the special cases
near the EOF are also tested.

Depending on the implementation (sys, cfb), fbdev read/write changes its
semantics. Together with a kernel patches [1] these test cases intend to
provide a reference.

v6:
	* remove unaligned I/O from fast-feedback,testlist (Petri)
	* actually use igt_assert() in nullptr test (Petri)
v5:
	* test mmap() with igt_assert() (Daniel, Chris)
v4:
	* declare variables as volatile where necessary (Petri)
	* replace igt_require() with igt_assert() in several places (Petri)
	* clarify several error messages (Petri)
	* update CI
v3:
	* put igt_describe() before the block it describes (Petri)
v2:
	* move tests into subtest groups
	* do setup in igt_fixtures (Daniel, Chris, Petri)
	* add additional tests for unaligned access and NULL-pointer
	  buffers (Daniel)

[1] https://patchwork.freedesktop.org/series/80038/

Thomas Zimmermann (8):
  tests/fbdev: Move existing tests into separate subgroups
  tests/fbdev: Map framebuffer in igt_fixture
  tests/fbdev: Add tests for read operations on framebuffer
  tests/fbdev: Add tests for unaligned reads on framebuffer memory
  tests/fbdev: Add tests for write operations on framebuffer
  tests/fbdev: Add tests for unaligned writes on framebuffer memory
  tests/fbdev: Add tests for accessing framebuffer near EOF
  tests/fbdev: Add tests for read/writing with NULL-pointer buffers

 tests/fbdev.c                         | 223 ++++++++++++++++++++++++--
 tests/intel-ci/fast-feedback.testlist |   6 +-
 2 files changed, 212 insertions(+), 17 deletions(-)

--
2.29.2



More information about the igt-dev mailing list