mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 03:53:38 +00:00
Merge pull request #8263 from opensourcerouting/docker-update
tests: docker fixes & improvements
This commit is contained in:
commit
e43ba29689
@ -23,6 +23,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
|
|||||||
libreadline-dev \
|
libreadline-dev \
|
||||||
libc-ares-dev \
|
libc-ares-dev \
|
||||||
libcap-dev \
|
libcap-dev \
|
||||||
|
libelf-dev \
|
||||||
man \
|
man \
|
||||||
mininet \
|
mininet \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
|
@ -132,6 +132,7 @@ if [ -z "$TOPOTEST_FRR" ]; then
|
|||||||
echo "frr-topotests only works if you have your tree in git." >&2
|
echo "frr-topotests only works if you have your tree in git." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
git -C "$TOPOTEST_FRR" ls-files -z > "${TOPOTEST_LOGS}/git-ls-files"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$TOPOTEST_BUILDCACHE" ]; then
|
if [ -z "$TOPOTEST_BUILDCACHE" ]; then
|
||||||
|
@ -34,19 +34,15 @@ CDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
|
|
||||||
if [ "${TOPOTEST_CLEAN}" != "0" ]; then
|
if [ "${TOPOTEST_CLEAN}" != "0" ]; then
|
||||||
log_info "Cleaning FRR builddir..."
|
log_info "Cleaning FRR builddir..."
|
||||||
rm -rf $FRR_SYNC_DIR $FRR_BUILD_DIR &> /dev/null
|
rm -rf $FRR_BUILD_DIR &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log_info "Syncing FRR source with host..."
|
log_info "Syncing FRR source with host..."
|
||||||
mkdir -p $FRR_SYNC_DIR
|
|
||||||
rsync -a --info=progress2 \
|
|
||||||
--exclude '*.o' \
|
|
||||||
--exclude '*.lo'\
|
|
||||||
--chown root:root \
|
|
||||||
$FRR_HOST_DIR/. $FRR_SYNC_DIR/
|
|
||||||
(cd $FRR_SYNC_DIR && git clean -xdf > /dev/null)
|
|
||||||
mkdir -p $FRR_BUILD_DIR
|
mkdir -p $FRR_BUILD_DIR
|
||||||
rsync -a --info=progress2 --chown root:root $FRR_SYNC_DIR/. $FRR_BUILD_DIR/
|
rsync -a --info=progress2 \
|
||||||
|
--from0 --files-from=/tmp/git-ls-files \
|
||||||
|
--chown root:root \
|
||||||
|
$FRR_HOST_DIR/. $FRR_BUILD_DIR/
|
||||||
|
|
||||||
cd "$FRR_BUILD_DIR" || \
|
cd "$FRR_BUILD_DIR" || \
|
||||||
log_fatal "failed to find frr directory"
|
log_fatal "failed to find frr directory"
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
FRR_HOST_DIR=/root/host-frr
|
FRR_HOST_DIR=/root/host-frr
|
||||||
FRR_SYNC_DIR=/root/persist/frr-sync
|
|
||||||
FRR_BUILD_DIR=/root/persist/frr-build
|
FRR_BUILD_DIR=/root/persist/frr-build
|
||||||
|
|
||||||
if [ ! -L "/root/frr" ]; then
|
if [ ! -L "/root/frr" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user