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# We do know that QEMU provides SCC emulation by very default so pin this test 11# to it without requesting an extra configuration flag. 12[[ $(uname) == Linux && $(< /sys/class/dmi/id/chassis_vendor) == QEMU ]] || exit 0 13 14"$rootdir/scripts/setup.sh" reset 15 16scan_nvme_ctrls 17ctrl=$(get_ctrl_with_feature scc) bdf=${bdfs["$ctrl"]} 18 19"$rootdir/scripts/setup.sh" 20 21run_test "nvme_simple_copy" "$testdir/simple_copy/simple_copy" \ 22 -r "trtype:pcie traddr:$bdf" 23