selftests: ublk: improve test usability
authorMing Lei <ming.lei@redhat.com>
Mon, 3 Mar 2025 12:43:21 +0000 (20:43 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Mar 2025 22:24:42 +0000 (16:24 -0600)
commit390174c91d2d67297cfc4faa4d4bf5a8a090ac33
tree06919ed502c7f8238f274599fd25cda796901b47
parentaf83ccc7db3a3cb48bc8e9f622500a303e06e3c9
selftests: ublk: improve test usability

Add UBLK_TEST_QUIET, so we can print test result(PASS/SKIP/FAIL) only.

Also always run from test script's current directory, then the same test
script can be started from other work directory.

This way helps a lot to reuse this test source code and scripts for
other projects(liburing, blktests, ...)

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250303124324.3563605-12-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/test_common.sh
tools/testing/selftests/ublk/test_loop_01.sh
tools/testing/selftests/ublk/test_loop_02.sh
tools/testing/selftests/ublk/test_loop_03.sh
tools/testing/selftests/ublk/test_loop_04.sh
tools/testing/selftests/ublk/test_null_01.sh
tools/testing/selftests/ublk/test_stress_01.sh
tools/testing/selftests/ublk/test_stress_02.sh