Files
chasquid/test/t-04-aliases/chasquid-util.sh
Alberto Bertogli 3c3c32e2fb 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.
2024-03-12 20:43:21 +00:00

7 lines
215 B
Bash
Executable File

#!/bin/bash
# Wrapper so chamuyero scripts can invoke chasquid-util for testing.
# Run from the config directory because data_dir is relative.
cd config || exit 1
../../../cmd/chasquid-util/chasquid-util -C=. "$@"