1#!/usr/bin/env bash 2# SPDX-License-Identifier: BSD-3-Clause 3# All rights reserved. 4# 5 6testdir=$(readlink -f "$(dirname "$0")") 7rootdir=$(readlink -f "$testdir/../..") 8source "$rootdir/test/nvme/cuse/common.sh" 9 10"$rootdir/scripts/setup.sh" reset 11 12scan_nvme_ctrls 13ctrl=$(get_ctrl_with_feature fdp) || exit 1 14bdf=${bdfs["$ctrl"]} 15 16"$rootdir/scripts/setup.sh" 17 18run_test "nvme_flexible_data_placement" "$testdir/fdp/fdp" \ 19 -r "trtype:pcie traddr:$bdf" 20