Add vanilla parity harness and harden server boundaries

This commit is contained in:
Daniar Mannanov 2026-08-10 22:52:44 +03:00
parent 1924cb5591
commit ca019756ec
25 changed files with 1118 additions and 217 deletions

View file

@ -1,10 +1,19 @@
.PHONY: test test-race verify
.PHONY: build vet test test-race parity verify
build:
go build ./...
vet:
go vet ./...
test:
go test ./...
test-race:
go test -race ./internal/network ./internal/server ./internal/world \
-run 'Test(Integration|BoundaryEdit|PlayerInfo|PlayerRegistry|Concurrent|Incremental|EncodeLight|Cache|Store|Eviction|Region|Ticket|Streamer|LoadSixteen)'
go test -race ./...
verify: test test-race
parity:
test -f internal/world/testdata/vanilla_overworld_12345.bin
REGIONIO_REQUIRE_PARITY=1 go test ./internal/world -run TestVanillaBlockParity
verify: build vet test test-race