2023-01-25 23:01:15 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
|
2023-04-25 14:10:06 +00:00
|
|
|
testdir=$(readlink -f "$(dirname "$0")")
|
|
|
|
rootdir=$(readlink -f "$testdir/../..")
|
|
|
|
source "$rootdir/test/nvme/cuse/common.sh"
|
2023-01-25 23:01:15 +00:00
|
|
|
|
2023-04-25 14:10:06 +00:00
|
|
|
"$rootdir/scripts/setup.sh" reset
|
2023-01-25 23:01:15 +00:00
|
|
|
|
2023-04-25 14:10:06 +00:00
|
|
|
scan_nvme_ctrls
|
|
|
|
ctrl=$(get_ctrl_with_fdp) bdf=${bdfs["$ctrl"]}
|
|
|
|
|
|
|
|
"$rootdir/scripts/setup.sh"
|
|
|
|
|
|
|
|
run_test "nvme_flexible_data_placement" "$testdir/fdp/fdp" \
|
|
|
|
-r "trtype:pcie traddr:$bdf"
|