]> git.proxmox.com Git - mirror_frr.git/blame - tests/topotests/docker/inner/entrypoint.sh
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / tests / topotests / docker / inner / entrypoint.sh
CommitLineData
1e9c095c 1#!/bin/bash
47a3a827 2# SPDX-License-Identifier: MIT
1e9c095c
RZ
3#
4# Copyright 2018 Network Device Education Foundation, Inc. ("NetDEF")
1e9c095c
RZ
5
6# Load shared functions
7CDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8. $CDIR/funcs.sh
9
6926d304
CF
10set -e
11
1e9c095c
RZ
12#
13# Script begin
14#
31eae3e3
CF
15"${CDIR}/compile_frr.sh"
16"${CDIR}/openvswitch.sh"
1e9c095c 17
ebdaa9ce
CF
18cd "${FRR_BUILD_DIR}/tests/topotests"
19
1e9c095c 20log_info "Setting permissions on /tmp so we can generate logs"
4242d6e2 21chmod 1777 /tmp
1e9c095c 22
4242d6e2
CF
23if [ $# -eq 0 ] || ([[ "$1" != /* ]] && [[ "$1" != ./* ]]); then
24 export TOPOTESTS_CHECK_MEMLEAK=/tmp/memleak_
25 export TOPOTESTS_CHECK_STDERR=Yes
ecd2f14c
CF
26 set -- pytest \
27 --junitxml /tmp/topotests.xml \
ecd2f14c 28 "$@"
4242d6e2 29fi
1e9c095c 30
4242d6e2 31exec "$@"