new file mode 100755
@@ -0,0 +1,41 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-3.0+
+# Copyright (C) 2022 Luis Chamberlain <mcgrof@kernel.org>
+#
+# This does basic optimal write test for the nvme character device.
+
+. tests/nvme/rc
+
+DESCRIPTION="basic optimal write io_uring_cmd engine for nvme-ns character device"
+QUICK=1
+CAN_BE_ZONED=1
+
+requires() {
+ _nvme_requires
+ _have_fio
+}
+
+device_requires() {
+ _require_test_dev_is_nvme
+}
+
+test_device() {
+ echo "Running ${TEST_NAME}"
+ local ngdev=${TEST_DEV/nvme/ng}
+ local fio_args=(
+ --size=1M
+ --cmd_type=nvme
+ --filename="$ngdev"
+ --time_based
+ --runtime=10
+ ) &&
+ _run_fio_verify_iouring_cmd_write_opts "${fio_args[@]}" >>"${FULL}" 2>&1 ||
+ fail=true
+
+ if [ -z "$fail" ]; then
+ echo "Test complete"
+ else
+ echo "Test failed"
+ return 1
+ fi
+}
new file mode 100644
@@ -0,0 +1,2 @@
+Running nvme/048
+Test complete
This does basic optimal write testing of the character device of a conventional NVMe drive. Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> --- tests/nvme/048 | 41 +++++++++++++++++++++++++++++++++++++++++ tests/nvme/048.out | 2 ++ 2 files changed, 43 insertions(+) create mode 100755 tests/nvme/048 create mode 100644 tests/nvme/048.out