#!/bin/bash
# SPDX-License-Identifier: GPL-2.0+
# Copyright (c) 2017-2018 Western Digital Corporation or its affiliates.
#
# Test NVMeOF target creation with a block device backed ns.

. tests/nvme/rc

DESCRIPTION="create an NVMeOF target with a block device-backed ns"
QUICK=1

requires() {
	_nvme_requires
	_have_loop
	_require_nvme_trtype_is_fabrics
}

test() {
	echo "Running ${TEST_NAME}"

	_setup_nvmet


	_nvmet_target_setup

	_nvmet_target_cleanup

	echo "Test complete"
}
