From 02f3105e480dddea1e3ac4085737ad7fc41459b0 Mon Sep 17 00:00:00 2001 From: Evgenii Date: Thu, 1 Aug 2024 10:56:18 +0100 Subject: [PATCH] Freebsd test all root component (#2361) * chore(tests): add all root component into FreeBSD check * change timeout for each component * add client tests execution measure * revert -p1 for client tests and explain why * measure duration of all test run --- .github/workflows/golang-test-freebsd.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/golang-test-freebsd.yml b/.github/workflows/golang-test-freebsd.yml index 6cb5f7427..4f13ee30e 100644 --- a/.github/workflows/golang-test-freebsd.yml +++ b/.github/workflows/golang-test-freebsd.yml @@ -30,6 +30,17 @@ jobs: # -e - to faile on first error run: | set -e -x - go build -o netbird client/main.go - go test -timeout 5m -p 1 -failfast ./iface/... - go test -timeout 5m -p 1 -failfast ./client/... + time go build -o netbird client/main.go + # check all component except management, since we do not support management server on freebsd + time go test -timeout 1m -failfast ./base62/... + # NOTE: without -p1 `client/internal/dns` will fail becasue of `listen udp4 :33100: bind: address already in use` + time go test -timeout 8m -failfast -p 1 ./client/... + time go test -timeout 1m -failfast ./dns/... + time go test -timeout 1m -failfast ./encryption/... + time go test -timeout 1m -failfast ./formatter/... + time go test -timeout 1m -failfast ./iface/... + time go test -timeout 1m -failfast ./route/... + time go test -timeout 1m -failfast ./sharedsock/... + time go test -timeout 1m -failfast ./signal/... + time go test -timeout 1m -failfast ./util/... + time go test -timeout 1m -failfast ./version/...