@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_loop
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -17,6 +17,10 @@ requires() {
_have_writeable_kmsg
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -17,6 +17,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -16,6 +16,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -14,6 +14,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -14,6 +14,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -19,6 +19,10 @@ requires() {
_require_nvme_test_img_size 350m
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -18,6 +18,10 @@ requires() {
_require_nvme_test_img_size 350m
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -13,6 +13,10 @@ requires() {
_require_nvme_trtype_is_loop
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -13,6 +13,10 @@ requires() {
_require_nvme_trtype_is_loop
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -16,6 +16,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -14,6 +14,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -16,6 +16,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test_user_io()
{
local disk="$1"
@@ -15,6 +15,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -23,6 +23,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -13,6 +13,10 @@ requires() {
_have_kernel_option NVME_TARGET_PASSTHRU
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
nvme_info() {
local ns=$1
@@ -14,6 +14,10 @@ requires() {
_have_fio
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test_device() {
echo "Running ${TEST_NAME}"
@@ -20,6 +20,10 @@ device_requires() {
_require_test_dev_size "${nvme_img_size}"
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test_device() {
echo "Running ${TEST_NAME}"
@@ -13,6 +13,10 @@ requires() {
_have_kernel_option NVME_TARGET_PASSTHRU
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test_device() {
echo "Running ${TEST_NAME}"
@@ -12,6 +12,10 @@ requires() {
_have_kernel_option NVME_TARGET_PASSTHRU
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test_device() {
echo "Running ${TEST_NAME}"
@@ -18,6 +18,10 @@ requires() {
_nvme_requires
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -16,6 +16,10 @@ requires() {
_require_nvme_trtype_is_fabrics
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -19,6 +19,9 @@ requires() {
_require_nvme_cli_auth
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
test() {
echo "Running ${TEST_NAME}"
@@ -19,6 +19,9 @@ requires() {
_require_nvme_cli_auth
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
test() {
echo "Running ${TEST_NAME}"
@@ -20,6 +20,9 @@ requires() {
_have_driver dh_generic
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
test() {
echo "Running ${TEST_NAME}"
@@ -20,6 +20,9 @@ requires() {
_have_driver dh_generic
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
test() {
echo "Running ${TEST_NAME}"
@@ -21,6 +21,9 @@ requires() {
_have_driver dh_generic
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
test() {
echo "Running ${TEST_NAME}"
@@ -17,6 +17,10 @@ requires() {
_have_kver 4 21
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
test() {
echo "Running ${TEST_NAME}"
@@ -15,6 +15,10 @@ requires() {
_require_min_cpus 2
}
+set_conditions() {
+ _set_nvme_trtype "$@"
+}
+
nvmf_wait_for_state() {
local def_state_timeout=5
local subsys_name="$1"
Add set_conditions() hook and call _set_nvme_trtype() so that the test cases are repeated for NMVET_TR_TYPES. Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> --- tests/nvme/002 | 4 ++++ tests/nvme/003 | 4 ++++ tests/nvme/004 | 4 ++++ tests/nvme/005 | 4 ++++ tests/nvme/006 | 4 ++++ tests/nvme/007 | 4 ++++ tests/nvme/008 | 4 ++++ tests/nvme/009 | 4 ++++ tests/nvme/010 | 4 ++++ tests/nvme/011 | 4 ++++ tests/nvme/012 | 4 ++++ tests/nvme/013 | 4 ++++ tests/nvme/014 | 4 ++++ tests/nvme/015 | 4 ++++ tests/nvme/016 | 4 ++++ tests/nvme/017 | 4 ++++ tests/nvme/018 | 4 ++++ tests/nvme/019 | 4 ++++ tests/nvme/020 | 4 ++++ tests/nvme/021 | 4 ++++ tests/nvme/022 | 4 ++++ tests/nvme/023 | 4 ++++ tests/nvme/024 | 4 ++++ tests/nvme/025 | 4 ++++ tests/nvme/026 | 4 ++++ tests/nvme/027 | 4 ++++ tests/nvme/028 | 4 ++++ tests/nvme/029 | 4 ++++ tests/nvme/030 | 4 ++++ tests/nvme/031 | 4 ++++ tests/nvme/033 | 4 ++++ tests/nvme/034 | 4 ++++ tests/nvme/035 | 4 ++++ tests/nvme/036 | 4 ++++ tests/nvme/037 | 4 ++++ tests/nvme/038 | 4 ++++ tests/nvme/040 | 4 ++++ tests/nvme/041 | 3 +++ tests/nvme/042 | 3 +++ tests/nvme/043 | 3 +++ tests/nvme/044 | 3 +++ tests/nvme/045 | 3 +++ tests/nvme/047 | 4 ++++ tests/nvme/048 | 4 ++++ 44 files changed, 171 insertions(+)