summaryrefslogtreecommitdiffstats
path: root/tests/ci/scp_storperf_files.sh
blob: 71306eb80322cf6ee50c98f5de16450681a4cfd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash

##############################################################################
# Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

# Copy storperf_admin-rc to deployment location.

ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"

scp_files(){
    export JUMP_HOST_IP
    sshpass -p root scp 2>/dev/null $ssh_options ~/storperf_admin-rc \
            root@${JUMP_HOST_IP}:/root/ &> /dev/null
    sshpass -p root scp 2>/dev/null $ssh_options /home/opnfv/repos/storperf/docker-compose/docker-compose.yaml \
            root@${JUMP_HOST_IP}:/root/ &> /dev/null
}

case "$NODE_NAME" in
    "huawei-pod1")
        JUMP_HOST_IP='192.168.10.6'
        scp_files
        ;;
    "huawei-pod2")
        JUMP_HOST_IP='192.168.11.2'
        scp_files
        ;;
    *)
        # no node name, exit
        echo "storperf test case will not run on this pod, skipping scp files..."
        ;;
esac
nfv_yardstick_tc024.rst opnfv_yardstick_tc037.rst opnfv_yardstick_tc038.rst opnfv_yardstick_tc042.rst opnfv_yardstick_tc043.rst opnfv_yardstick_tc044.rst opnfv_yardstick_tc055.rst opnfv_yardstick_tc061.rst opnfv_yardstick_tc063.rst opnfv_yardstick_tc069.rst opnfv_yardstick_tc070.rst opnfv_yardstick_tc071.rst opnfv_yardstick_tc072.rst opnfv_yardstick_tc075.rst OPNFV Feature Test Cases ======================== H A --- .. toctree:: :maxdepth: 1 opnfv_yardstick_tc019.rst opnfv_yardstick_tc025.rst IPv6 ---- .. toctree:: :maxdepth: 1 opnfv_yardstick_tc027.rst KVM --- .. toctree:: :maxdepth: 1 opnfv_yardstick_tc028.rst Parser ------ .. toctree:: :maxdepth: 1 opnfv_yardstick_tc040.rst virtual Traffic Classifier -------------------------- .. toctree:: :maxdepth: 1 opnfv_yardstick_tc006.rst opnfv_yardstick_tc007.rst opnfv_yardstick_tc020.rst opnfv_yardstick_tc021.rst Templates ========= .. toctree:: :maxdepth: 1 testcase_description_v2_template Yardstick_task_templates