]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/test/iscsi_tgt/rpc_config/rpc_config.sh
3 testdir
=$
(readlink
-f $
(dirname $0))
4 rootdir
=$
(readlink
-f $testdir/..
/..
/..
)
5 source $rootdir/scripts
/autotest_common.sh
7 if [ -z "$TARGET_IP" ]; then
8 echo "TARGET_IP not defined in environment"
12 if [ -z "$INITIATOR_IP" ]; then
13 echo "INITIATOR_IP not defined in environment"
17 timing_enter rpc_config
19 # iSCSI target configuration
24 NETMASK
=$INITIATOR_IP/32
28 rpc_py
=$rootdir/scripts
/rpc.py
29 rpc_config_py
="python $testdir/rpc_config.py"
32 .
/app
/iscsi_tgt
/iscsi_tgt
-c $testdir/iscsi.conf
&
34 echo "Process pid: $pid"
36 trap "killprocess $pid; exit 1" SIGINT SIGTERM EXIT
38 waitforlisten
$pid ${RPC_PORT}
39 echo "iscsi_tgt is listening. Running tests..."
41 $rpc_config_py $rpc_py
45 trap - SIGINT SIGTERM EXIT
49 timing_exit rpc_config