1#!/usr/bin/env bash 2# SPDX-License-Identifier: BSD-3-Clause 3# Copyright (C) 2020 Intel Corporation 4# All rights reserved. 5# 6testdir=$(readlink -f $(dirname $0)) 7rootdir=$(readlink -f $testdir/../../..) 8source $rootdir/scripts/common.sh 9source $rootdir/test/common/autotest_common.sh 10 11if [[ $(uname) != "Linux" ]]; then 12 echo "NVMe cuse tests only supported on Linux" 13 exit 1 14fi 15 16modprobe cuse 17run_test "nvme_cuse_app" $testdir/cuse 18run_test "nvme_cuse_rpc" $testdir/nvme_cuse_rpc.sh 19run_test "nvme_cli_cuse" $testdir/spdk_nvme_cli_cuse.sh 20run_test "nvme_smartctl_cuse" $testdir/spdk_smartctl_cuse.sh 21run_test "nvme_ns_manage_cuse" $testdir/nvme_ns_manage_cuse.sh 22rmmod cuse 23 24"$rootdir/scripts/setup.sh" 25