2020-06-08 11:42:52 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-11-02 15:49:40 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright (C) 2020 Intel Corporation
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
2020-06-08 11:42:52 +00:00
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
|
|
rootdir=$(readlink -f $testdir/../../..)
|
|
|
|
source $rootdir/scripts/common.sh
|
|
|
|
source $rootdir/test/common/autotest_common.sh
|
|
|
|
|
|
|
|
if [[ $(uname) != "Linux" ]]; then
|
|
|
|
echo "NVMe cuse tests only supported on Linux"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
modprobe cuse
|
|
|
|
run_test "nvme_cuse_app" $testdir/cuse
|
|
|
|
run_test "nvme_cuse_rpc" $testdir/nvme_cuse_rpc.sh
|
|
|
|
run_test "nvme_cli_cuse" $testdir/spdk_nvme_cli_cuse.sh
|
|
|
|
run_test "nvme_smartctl_cuse" $testdir/spdk_smartctl_cuse.sh
|
2023-03-07 10:23:38 +00:00
|
|
|
run_test "nvme_ns_manage_cuse" $testdir/nvme_ns_manage_cuse.sh
|
2020-06-08 11:42:52 +00:00
|
|
|
rmmod cuse
|
2023-03-07 10:23:38 +00:00
|
|
|
|
|
|
|
"$rootdir/scripts/setup.sh"
|