261030.4 · 6182a9aa802e833d238ab04b403b428f42fe37f9
A black-box suite runs the built binary, starting with the 404 coin
make blackbox runs tests/ with pytest and httpx against a server in a throwaway home, on --public and on the form wwwvm's unit uses. Cases are TOML files named after the decision they check.
The coin shows on both forms for a path a served repo lacks. The cache message appears only without --public, for a path that names no repo.
reading declarations
Changes to Makefile. All files
@@ -1,4 +1,4 @@-.PHONY: all build syntax fonts run test bench clean install uninstall deb deb-syntax install-deb uninstall-deb+.PHONY: all build syntax fonts run test blackbox bench clean install uninstall deb deb-syntax install-deb uninstall-deb # WORKING_NAME holds the program's name, provisional until a final one is # chosen. The binary, the package and the paths below take it.@@ -37,6 +37,10 @@ test: go vet ./... go test ./... +# blackbox runs tests/ against the built binary. See doc/testing.md.+blackbox: build+ cd tests && TEST_BIN=$(CURDIR)/build/$(NAME) uv run pytest+ # bench runs the benchmarks in bench_test.go. BENCH picks them by pattern # and COUNT repeats each, eg COUNT=10 for benchstat. BENCH ?= .