From 9e425c12fdb8d96cdb1fbe147bf95d360481ff5f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 15 Nov 2024 07:58:07 +0100 Subject: [PATCH] ci: run examples/podman-frr --- .builds/examples.yml | 1 + ci/examples | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.builds/examples.yml b/.builds/examples.yml index 8162a4a..1d1f5c5 100644 --- a/.builds/examples.yml +++ b/.builds/examples.yml @@ -5,6 +5,7 @@ packages: - bird - go - iproute2 + - podman tasks: - all: | sudo useradd --system --user-group bird diff --git a/ci/examples b/ci/examples index 5a7617e..c4a3e16 100755 --- a/ci/examples +++ b/ci/examples @@ -21,27 +21,38 @@ set -x cd "$(dirname "$0")" examples="$(pwd)/../examples" +PATH="$(pwd)/..:$PATH" +export PATH + # No network namespaces (yet) test -z "$(ip netns)" cd "$examples/readme" -../../linux-network-namespace-labs up lab.conf +linux-network-namespace-labs up lab.conf ip netns exec r1 ping -c1 r1-loop ip netns exec r1 ping -c1 r2-loop ip netns exec r1 ping -c1 r3-loop -../../linux-network-namespace-labs down lab.conf +linux-network-namespace-labs down lab.conf test -z "$(ip netns)" test "$(cd /etc/netns; find)" = "." # directory empty cd "$examples/bird-ospf" -../../linux-network-namespace-labs up lab.conf +linux-network-namespace-labs up lab.conf # Wait until OSPF is ready wait_for_route r1 3fff::1 wait_for_route r1 3fff::2 ip netns exec r1 ping -c1 r1-loop ip netns exec r1 ping -c1 r2-loop ip netns exec r1 ping -c1 r3-loop -../../linux-network-namespace-labs down lab.conf +linux-network-namespace-labs down lab.conf +test -z "$(ip netns)" +test "$(cd /etc/netns; find)" = "." # directory empty + +cd "$examples/podman-frr" +./run.sh +wait_for_route r1 3fff::1 +ip netns exec r1 ping -c1 r1-loop +linux-network-namespace-labs down lab.conf test -z "$(ip netns)" test "$(cd /etc/netns; find)" = "." # directory empty -- 2.45.2