]>
Commit | Line | Data |
---|---|---|
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 | |
7 | CDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
8 | . $CDIR/funcs.sh | |
9 | ||
6926d304 CF |
10 | set -e |
11 | ||
1e9c095c RZ |
12 | # |
13 | # Script begin | |
14 | # | |
31eae3e3 CF |
15 | "${CDIR}/compile_frr.sh" |
16 | "${CDIR}/openvswitch.sh" | |
1e9c095c | 17 | |
ebdaa9ce CF |
18 | cd "${FRR_BUILD_DIR}/tests/topotests" |
19 | ||
1e9c095c | 20 | log_info "Setting permissions on /tmp so we can generate logs" |
4242d6e2 | 21 | chmod 1777 /tmp |
1e9c095c | 22 | |
4242d6e2 CF |
23 | if [ $# -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 | 29 | fi |
1e9c095c | 30 | |
4242d6e2 | 31 | exec "$@" |