File: integration

package info (click to toggle)
golang-github-containernetworking-plugins 1.1.1%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,672 kB
  • sloc: sh: 132; makefile: 11
file content (15 lines) | stat: -rwxr-xr-x 498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -ex

export DH_GOLANG_EXCLUDES="integration plugins/sample plugins/main/windows"

dh_auto_configure -O--buildsystem=golang -O--builddirectory=_build
dh_auto_build -O--buildsystem=golang -O--builddirectory=_build

ln -sf /usr/sbin/iptables-legacy $(pwd)/_build/bin/iptables
export PATH=$(pwd)/_build/bin:$PATH

dh_auto_test -O--buildsystem=golang -O--builddirectory=_build --no-parallel -- -timeout 30m

ip netns list| grep cnitest | cut -d' ' -f1 | xargs -n1 ip netns delete || true