1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-07 17:47:14 +00:00

test: Don't run "go build" each time a helper is invoked

Our tests invoke a variety of helpers, some of them are written in Go.
Today, we call "go build" (directly or indirectly via "go run"), which is
a bit wasteful and slows down the tests.

This patch makes the tests only build our Go helpers once every 10s at
most.

The solution is a bit hacky but in the context of these tests, it's
practical.
This commit is contained in:
Alberto Bertogli
2024-03-09 13:03:24 +00:00
parent 76a72367ae
commit 3c3c32e2fb
4 changed files with 46 additions and 16 deletions

View File

@@ -3,4 +3,4 @@
# Run from the config directory because data_dir is relative.
cd config || exit 1
go run ../../../cmd/chasquid-util/ -C=. "$@"
../../../cmd/chasquid-util/chasquid-util -C=. "$@"