Files
aego/modules/animation/module.mk
T
sanspie e54364070c
ci-platforms / windows amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
github-native / gitea-pending (push) Skipped
github-native / darwin amd64 native (push) Skipped
github-native / linux amd64 native (push) Skipped
github-native / windows amd64 native (push) Skipped
github-native / darwin arm64 native (push) Skipped
github-native / gitea-result (push) Skipped
ci / checks (push) Failing after 23s
ci / native-authoring (push) Skipped
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 11m23s
ci / release (push) Skipped
ci-platforms / darwin amd64 smoke (push) Skipped
ci: speed up checks without reducing coverage
2026-11-15 20:54:53 +03:00

16 lines
881 B
Makefile

MODULE_CI += test-animation
MODULE_BENCH_ALLOCS += bench-allocs-animation
.PHONY: test-animation bench-animation bench-allocs-animation
test-animation:
go test -count=1 ./anim/... ./asset/importers/animclip/... ./asset/importers/animctrl/... ./modules/animation/... ./tests/animation/...
bench-animation:
$(BENCH_PIN) go test -run '^$$' -bench . -benchmem -count=$(BENCH_COUNT) ./anim ./tests/animation
bench-allocs-animation:
mkdir -p $(BENCH_DIR)
go test -run '^$$' -bench '^Benchmark(Players|Animator)100$$' -benchmem -count=1 ./tests/animation | tee $(BENCH_DIR)/animation.allocs.txt
@awk '/^Benchmark(Players|Animator)100/ { seen++; for (i = 2; i <= NF; i++) if ($$i == "allocs/op" && $$(i-1) + 0 != 0) bad = 1 } END { if (seen != 2 || bad) { print "BenchmarkPlayers100 or BenchmarkAnimator100 allocates or did not run"; exit 1 } }' $(BENCH_DIR)/animation.allocs.txt