92fa3ec537
NVMe reservations provide capabilities that may be used by two or more hosts to coordinate access to a shared namespace, here we add the 4 reservation commands: reservation register/acquire/release/report. Change-Id: Ib03ae2120a57dd14aa64311a6ffeb39fda73018c Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Signed-off-by: Ziye Yang <ziye.yang@intel.com>
45 lines
937 B
Bash
Executable File
45 lines
937 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
rootdir="$testdir/../../.."
|
|
source $rootdir/scripts/autotest_common.sh
|
|
|
|
timing_enter nvme
|
|
|
|
timing_enter unit
|
|
$valgrind $testdir/unit/nvme_ns_cmd_c/nvme_ns_cmd_ut
|
|
$testdir/unit/nvme_c/nvme_ut
|
|
$valgrind $testdir/unit/nvme_qpair_c/nvme_qpair_ut
|
|
$valgrind $testdir/unit/nvme_ctrlr_c/nvme_ctrlr_ut
|
|
$valgrind $testdir/unit/nvme_ctrlr_cmd_c/nvme_ctrlr_cmd_ut
|
|
timing_exit unit
|
|
|
|
timing_enter aer
|
|
$testdir/aer/aer
|
|
timing_exit aer
|
|
|
|
timing_enter identify
|
|
$rootdir/examples/nvme/identify/identify
|
|
timing_exit identify
|
|
|
|
timing_enter perf
|
|
$rootdir/examples/nvme/perf/perf -q 128 -w read -s 12288 -t 5
|
|
timing_exit perf
|
|
|
|
timing_enter reserve
|
|
$rootdir/examples/nvme/reserve/reserve
|
|
timing_exit reserve
|
|
|
|
#Now test nvme reset function
|
|
timing_enter reset
|
|
$testdir/reset/reset -q 64 -w write -s 4096 -t 15
|
|
timing_exit reset
|
|
|
|
timing_enter sgl
|
|
$testdir/sgl/sgl
|
|
timing_exit sgl
|
|
|
|
timing_exit nvme
|