aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/dist/main.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-10 04:14:12 +0900
committerOphestra <cat@gensokyo.uk>2026-05-10 04:15:07 +0900
commitee5c0dd13529c20761209c8f4fb26b3816866bc5 (patch)
tree56a40400565d1fc5d58ef16af682176f463af990 /cmd/dist/main.go
parent92c48d82e25906e7202bf077c62390db62f71a61 (diff)
cmd/dist: optionally skip tests
Works around incomplete syscall translation by qemu. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/dist/main.go')
-rw-r--r--cmd/dist/main.go17
1 files changed, 10 insertions, 7 deletions
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"