Files
breeze/mk/tests-checks.mk
T
waozi adbb3c3116 Stop the always-red runs and check pushes locally first
A pushed version that is already released no longer starts the forty-minute release builds; CI still tests every push. A package version waiting for the next release is a notice in App packages instead of a failure. The web build keeps saving its storage while practice packs install (up to about ten seconds of retries), and the package compatibility check asks the node again while a deploy restarts it. The pre-push hook now runs the quick checks that match the pushed files (versions, translations and fonts, UI APIs, app bundles, workflows, script syntax); make pre-push-check runs them by hand.
2026-10-23 14:08:39 -03:00

92 lines
2.4 KiB
Makefile

# Source, asset and release tooling checks that make test runs.
.PHONY: fdroid-build-test
fdroid-build-test:
python3 tests/fdroid_build_test.py
.SILENT: package-check test font-bundle-check audio-test-fixture-check embedded-image-assets-check
package-check:
sh scripts/check-packages.sh
clean-text-api-check:
python3 scripts/check-clean-text-api.py src tests
.PHONY: button-api-check
button-api-check:
bash scripts/check-button-api.sh
# The checks the pre-push hook runs, for everything not yet on origin/master.
.PHONY: pre-push-check
pre-push-check:
python3 scripts/pre-push-checks.py --unpushed
.PHONY: version-test
version-test:
python3 tests/version_test.py
.PHONY: proof-test
# Deliberately broken implementations must be rejected by the laws.
proof-test: $(ZI2C_BIN)
sh tests/law_mutation_test.sh $(ZIRAN_BIN)
secret-check:
python3 ./scripts/check-secrets.py --working-tree
secret-check-history:
python3 ./scripts/check-secrets.py --history
embedded-image-assets-check: $(EMBEDDED_ASSETS_C)
bash ./tests/embedded_image_assets_test.sh
# An icon from a Kryon sheet Inbe does not ship shows "Missing image".
.PHONY: icon-sheets-check
icon-sheets-check: $(PACKAGES_MK)
python3 tests/icon_sheets_test.py $(KRYON_DIR)/src/ui/icon.zi
.PHONY: storage-literals-check
storage-literals-check:
python3 tests/storage_literals_test.py
bash ./scripts/check-storage-literals.sh
# Every test entry point in tests/ is run by a make target, workflow or script.
.PHONY: test-references-check
test-references-check:
python3 scripts/check-test-references.py
.PHONY: screenshot-scene-test
screenshot-scene-test:
bash ./tests/screenshot_scene_test.sh
audio-test-fixture-check:
printf '%s %s\n' \
d1f25feccd8af5cfe22ca1ed6afa901a5f97cbf976b93fc46096a2bd83315034 \
test-fixtures/audio/autumn-sunset.mp3 | sha256sum -c - >/dev/null
font-bundle-check:
for font in $(FONT_FILES); do \
case "$$font" in \
$(KRYON_DIR)/fonts/noto/*) \
echo "Full Noto font must not be embedded: $$font"; \
exit 1; \
;; \
esac; \
done
.PHONY: package-size-test
package-size-test:
python3 tests/package_size_test.py
.PHONY: phone-check-gate-test
phone-check-gate-test:
python3 tests/phone_check_gate_test.py
.PHONY: release-tooling-test
release-tooling-test:
python3 tests/release_test.py
python3 tests/file_size_test.py
.PHONY: play-screenshots-test
play-screenshots-test:
python3 tests/play_screenshots_test.py