2 Star 3 Fork 0

Gitee 极速下载 / go-iptables

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/coreos/go-iptables
克隆/下载
test 640 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
#
# Run all go-iptables tests
# ./test
# ./test -v
#
# Run tests for one package
# PKG=./unit ./test
# PKG=ssh ./test
#
set -e
# Invoke ./cover for HTML output
COVER=${COVER:-"-cover"}
echo "Checking gofmt..."
fmtRes=$(gofmt -l -s .)
if [ -n "${fmtRes}" ]; then
echo -e "gofmt checking failed:\n${fmtRes}"
exit 255
fi
echo "Running tests..."
bin=$(mktemp)
go test -c -o ${bin} ${COVER} ./iptables/...
if [[ -z "$SUDO_PERMITTED" ]]; then
echo "Test aborted for safety reasons. Please set the SUDO_PERMITTED variable."
exit 1
fi
sudo -E bash -c "${bin} $@ ./iptables/..."
echo "Success"
rm "${bin}"
Go
1
https://gitee.com/mirrors/go-iptables.git
git@gitee.com:mirrors/go-iptables.git
mirrors
go-iptables
go-iptables
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891