selftests: ublk: add kernel selftests for ublk
authorMing Lei <ming.lei@redhat.com>
Fri, 28 Feb 2025 16:19:14 +0000 (00:19 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Feb 2025 16:28:08 +0000 (09:28 -0700)
commit6aecda00b7d1e187c31e702d607d2b51bbcddbcc
tree9400b018336915cc93ddb88c1ccb3e04aa27c06f
parented9f3112a8a8f6e6919d3b9da2651fa302df7be3
selftests: ublk: add kernel selftests for ublk

Both ublk driver and userspace heavily depends on io_uring subsystem,
and tools/testing/selftests/ should be the best place for holding this
cross-subsystem tests.

Add basic read/write IO test over this ublk null disk, and make sure ublk
working.

More tests will be added.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250228161919.2869102-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
MAINTAINERS
tools/testing/selftests/Makefile
tools/testing/selftests/ublk/.gitignore [new file with mode: 0644]
tools/testing/selftests/ublk/Makefile [new file with mode: 0644]
tools/testing/selftests/ublk/config [new file with mode: 0644]
tools/testing/selftests/ublk/kublk.c [new file with mode: 0644]
tools/testing/selftests/ublk/kublk.h [new file with mode: 0644]
tools/testing/selftests/ublk/null.c [new file with mode: 0644]
tools/testing/selftests/ublk/test_common.sh [new file with mode: 0755]
tools/testing/selftests/ublk/test_null_01.sh [new file with mode: 0755]