Config: Add "test-hub" target to Makefile and improve log messages

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2025-10-04 15:59:34 +02:00
parent 47b7a0faf7
commit fba00a843c
3 changed files with 11 additions and 7 deletions

View file

@ -73,6 +73,7 @@ build-all: build-go build-js
pull: docker-pull
test: test-js test-go
test-go: run-test-go
test-hub: run-test-hub
test-pkg: run-test-pkg
test-ai: run-test-ai
test-api: run-test-api
@ -403,6 +404,9 @@ run-test-short:
run-test-go:
$(info Running all Go tests...)
$(GOTEST) -parallel 1 -count 1 -cpu 1 -tags="slow,develop" -timeout 20m ./pkg/... ./internal/...
run-test-hub:
$(info Running all Go tests with hub requests...)
env PHOTOPRISM_TEST_HUB="true" $(GOTEST) -parallel 1 -count 1 -cpu 1 -tags="slow,develop,debug" -timeout 20m ./pkg/... ./internal/...
run-test-mariadb:
$(info Running all Go tests on MariaDB...)
PHOTOPRISM_TEST_DRIVER="mysql" PHOTOPRISM_TEST_DSN="root:photoprism@tcp(mariadb:4001)/acceptance?charset=utf8mb4,utf8&collation=utf8mb4_unicode_ci&parseTime=true" $(GOTEST) -parallel 1 -count 1 -cpu 1 -tags="slow,develop" -timeout 20m ./pkg/... ./internal/...