3 # Copyright (c) 2021 Cisco and/or its affiliates.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
18 export CIMAN_DOCKER_SCRIPTS=${CIMAN_DOCKER_SCRIPTS:-"$(dirname $BASH_SOURCE)"}
19 . "$CIMAN_DOCKER_SCRIPTS/lib_csit.sh"
20 . "$CIMAN_DOCKER_SCRIPTS/lib_vpp.sh"
22 must_be_run_in_docker_build
26 if ! csit_supported_executor_class "$FDIOTOOLS_EXECUTOR_CLASS" ; then
27 echo_log "CSIT is not supported on executor class '$FDIOTOOLS_EXECUTOR_CLASS'. Skipping $(basename $0)..."
29 elif ! csit_supported_os "$OS_NAME" ; then
30 echo_log "CSIT is not supported on OS '$OS_NAME'. Skipping $(basename $0)..."
33 echo_log "Starting $(basename $0)"
37 for vpp_branch in ${VPP_BRANCHES[$OS_NAME]} ; do
38 # Returns checked out branch in csit_branch
39 csit_checkout_branch_for_vpp "$vpp_branch"
41 # Install csit OS packages
42 csit_install_packages "$csit_branch"
44 # Install/cache python packages
45 csit_pip_cache "$csit_branch"
48 echo_log -e "Completed $(basename $0)!\n\n=========="