From ee5c0dd13529c20761209c8f4fb26b3816866bc5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 10 May 2026 04:14:12 +0900 Subject: cmd/dist: optionally skip tests Works around incomplete syscall translation by qemu. Signed-off-by: Ophestra --- cmd/dist/main.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'cmd/dist/main.go') diff --git a/cmd/dist/main.go b/cmd/dist/main.go index c71dd806..9ed7f2f8 100644 --- a/cmd/dist/main.go +++ b/cmd/dist/main.go @@ -46,6 +46,7 @@ func main() { log.SetPrefix("") verbose := os.Getenv("VERBOSE") != "" + runTests := os.Getenv("HAKUREI_DIST_MAKE") == "" version := getenv("HAKUREI_VERSION", "untagged") prefix := getenv("PREFIX", "/usr") destdir := getenv("DESTDIR", "dist") @@ -101,13 +102,15 @@ func main() { ) log.Println() - log.Println("##### Testing Hakurei.") - mustRun( - ctx, "go", "test", - "-ldflags=-buildid= -linkmode external -extldflags=-static", - "./...", - ) - log.Println() + if runTests { + log.Println("##### Testing Hakurei.") + mustRun( + ctx, "go", "test", + "-ldflags=-buildid= -linkmode external -extldflags=-static", + "./...", + ) + log.Println() + } log.Println("##### Creating distribution.") const suffix = ".tar.gz" -- cgit v1.3.1