]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: ublk: add user copy test cases
authorCaleb Sander Mateos <csander@purestorage.com>
Fri, 12 Dec 2025 17:17:07 +0000 (10:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Dec 2025 19:50:41 +0000 (12:50 -0700)
commit63276182c51332b75293ac88f3a81d98bfca1b93
tree3581fb8b3478d11a1be11aecad281b58d13af11a
parentb9f0a94c3b2e7deaff93e4c4de335e3054223ff4
selftests: ublk: add user copy test cases

The ublk selftests cover every data copy mode except user copy. Add
tests for user copy based on the existing test suite:
- generic_14 ("basic recover function verification (user copy)") based
  on generic_04 and generic_05
- null_03 ("basic IO test with user copy") based on null_01 and null_02
- loop_06 ("write and verify over user copy") based on loop_01 and
  loop_03
- loop_07 ("mkfs & mount & umount with user copy") based on loop_02 and
  loop_04
- stripe_05 ("write and verify test on user copy") based on stripe_03
- stripe_06 ("mkfs & mount & umount on user copy") based on stripe_02
  and stripe_04
- stress_06 ("run IO and remove device (user copy)") based on stress_01
  and stress_03
- stress_07 ("run IO and kill ublk server (user copy)") based on
  stress_02 and stress_04

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/Makefile
tools/testing/selftests/ublk/test_generic_14.sh [new file with mode: 0755]
tools/testing/selftests/ublk/test_loop_06.sh [new file with mode: 0755]
tools/testing/selftests/ublk/test_loop_07.sh [new file with mode: 0755]
tools/testing/selftests/ublk/test_null_03.sh [new file with mode: 0755]
tools/testing/selftests/ublk/test_stress_06.sh [new file with mode: 0755]
tools/testing/selftests/ublk/test_stress_07.sh [new file with mode: 0755]
tools/testing/selftests/ublk/test_stripe_05.sh [new file with mode: 0755]
tools/testing/selftests/ublk/test_stripe_06.sh [new file with mode: 0755]