mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 11:50:21 +00:00

The files converted in this commit either had some random misspelling or formatting weirdness that made them escape automated replacement, or have a particularly "weird" licensing setup (e.g. dual-licensed.) This also marks a bunch of "public domain" files as SPDX License "NONE". Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
32 lines
626 B
Bash
Executable File
32 lines
626 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
# Copyright 2018 Network Device Education Foundation, Inc. ("NetDEF")
|
|
|
|
# Load shared functions
|
|
CDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
. $CDIR/funcs.sh
|
|
|
|
set -e
|
|
|
|
#
|
|
# Script begin
|
|
#
|
|
"${CDIR}/compile_frr.sh"
|
|
"${CDIR}/openvswitch.sh"
|
|
|
|
cd "${FRR_BUILD_DIR}/tests/topotests"
|
|
|
|
log_info "Setting permissions on /tmp so we can generate logs"
|
|
chmod 1777 /tmp
|
|
|
|
if [ $# -eq 0 ] || ([[ "$1" != /* ]] && [[ "$1" != ./* ]]); then
|
|
export TOPOTESTS_CHECK_MEMLEAK=/tmp/memleak_
|
|
export TOPOTESTS_CHECK_STDERR=Yes
|
|
set -- pytest \
|
|
--junitxml /tmp/topotests.xml \
|
|
"$@"
|
|
fi
|
|
|
|
exec "$@"
|