xref: /spdk/test/json_config/alias_rpc/alias_rpc.sh (revision 99a43e75ed9ac3c87d23e3746173cf5a5a992544)
1#!/usr/bin/env bash
2#  SPDX-License-Identifier: BSD-3-Clause
3#  Copyright (C) 2019 Intel Corporation
4#  All rights reserved.
5#
6testdir=$(readlink -f $(dirname $0))
7rootdir=$(readlink -f $testdir/../../..)
8source $rootdir/test/common/autotest_common.sh
9
10trap 'killprocess $spdk_tgt_pid; exit 1' ERR
11
12$SPDK_BIN_DIR/spdk_tgt &
13spdk_tgt_pid=$!
14waitforlisten $spdk_tgt_pid
15
16# Test deprecated rpcs in json
17$rootdir/scripts/rpc.py load_config -i < $testdir/conf.json
18
19killprocess $spdk_tgt_pid
20