Initiates the required test based on the user input\&.
.sp
The <device> parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1)\&.
.sp
On success, the corresponding test is initiated\&.
.SH"OPTIONS"
.PP
\-n <NUM>, \-\-namespace\-id=<NUM>
.RS4
Indicate the namespace in which the device self\-test has to becarried out
.RE
.PP
\-s <NUM>, \-\-self\-test\-code=<NUM>
.RS4
This field specifies the action taken by the device self\-test command : 1h: Start a short device self\-test operation 2h: Start a extended device self\-test operation eh: Start a vendor specific device self\-test operation fh: abort the device self\-test operation
.RE
.SH"EXAMPLES"
.sp
.RS4
.ien\{\
\h'-04'\(bu\h'+03'\c
.\}
.el\{\
.sp-1
.IP\(bu2.3
.\}
Start a short device self\-test in the namespace\-id 1:
.sp
.ifn\{\
.RS4
.\}
.nf
# nvme device\-self\-test /dev/nvme0 \-n 1 \-s 1
.fi
.ifn\{\
.RE
.\}
.RE
.sp
.RS4
.ien\{\
\h'-04'\(bu\h'+03'\c
.\}
.el\{\
.sp-1
.IP\(bu2.3
.\}
Abort the device self\-test operation in the namespace\-id 1: