RUST_BACKTRACE := full
all: tests
tests: tests-draw tests-draw-selected
tests: tests-name tests-name-selected
tests-draw:
cargo run --bin founder-draw -- \
--path ../tests/fixtures \
--characters aiQW \
--ignore google-fonts/ofl/bungeecolor \
--ignore google-fonts/ofl/bungeespice \
--ignore google-fonts/ofl/gruppo \
--ignore google-fonts/ofl/iceland \
--ignore google-fonts/ofl/kaushanscript \
--ignore google-fonts/ufl/ubuntu \
--ignore web-platform-tests/css/WOFF2/support/SFNT-CFF-Fallback \
--ignore web-platform-tests/css/WOFF2/support/SFNT-CFF-Reference \
--ignore web-platform-tests/css/css-fonts/support/fonts/FontWithFancyFeatures \
--ignore web-platform-tests/css/css-fonts/support/fonts/FontWithFeatures2 \
--ignore web-platform-tests/css/css-fonts/support/fonts/gsubtest-lookup1 \
--ignore web-platform-tests/css/css-fonts/support/fonts/gsubtest-lookup3 \
--ignore web-platform-tests/css/css-writing-modes/support/tcu-font \
--ignore web-platform-tests/fonts/adobe-fonts/CSSFWOrientationTest \
--ignore web-platform-tests/fonts/adobe-fonts/CSSHWOrientationTest \
--workers 4 > /dev/null
tests-draw-selected:
cargo run --bin founder-draw -- \
--path tests/fixtures \
--characters aiQW \
--mode free \
--output assets/draw/free
cargo run --bin founder-draw -- \
--path tests/fixtures \
--characters aiQW \
--mode local \
--output assets/draw/local
cargo run --bin founder-draw -- \
--path tests/fixtures \
--characters aiQW \
--mode global \
--output assets/draw/global
[ "$$(git diff assets/draw | wc -l | xargs)" = 0 ] || exit 1
tests-name:
cargo run --bin founder-name -- \
--path ../tests/fixtures \
--ignore google-fonts/ofl/bungeecolor \
--ignore google-fonts/ofl/bungeespice \
--ignore google-fonts/ofl/gentiumbookbasic \
--ignore google-fonts/ofl/gruppo \
--ignore google-fonts/ofl/iceland \
--ignore google-fonts/ofl/kaushanscript \
--ignore google-fonts/ufl/ubuntu \
--ignore web-platform-tests/css/WOFF2/support/SFNT-CFF-Fallback \
--ignore web-platform-tests/css/WOFF2/support/SFNT-CFF-Reference \
--ignore web-platform-tests/css/css-fonts/support/fonts/FontWithFancyFeatures \
--ignore web-platform-tests/css/css-fonts/support/fonts/FontWithFeatures2 \
--ignore web-platform-tests/css/css-fonts/support/fonts/gsubtest-lookup1 \
--ignore web-platform-tests/css/css-fonts/support/fonts/gsubtest-lookup3 \
--ignore web-platform-tests/fonts/CSSTest/csstest-basic-bold \
--ignore web-platform-tests/fonts/CSSTest/csstest-basic-bolditalic \
--ignore web-platform-tests/fonts/CSSTest/csstest-basic-regular \
--workers 4 > /dev/null
tests-name-selected:
cargo run --bin founder-name -- \
--path tests/fixtures \
--output assets/name
[ "$$(git diff assets/name | wc -l | xargs)" = 0 ] || exit 1
tests-convert-selected:
cargo run --bin founder-convert --features convert -- \
--path assets/draw \
--ignore AdobeBlank
.PHONY: tests
.PHONY: tests-draw tests-draw-selected
.PHONY: tests-name tests-name-selected
.PHONY: tests-convert-selected