Skip to content

Commit b53ecc5

Browse files
committed
Update the tests
1 parent 0bf5d8f commit b53ecc5

File tree

251 files changed

+1249
-677
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+1249
-677
lines changed

founder/Makefile

+33-19
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ RUST_BACKTRACE := full
44
all: test
55

66
.PHONY: test
7-
test: test-draw test-draw-selected
8-
test: test-name test-name-selected
7+
test:
98

109
.PHONY: test-convert-selected
10+
test: test-convert-selected
1111
test-convert-selected:
1212
cargo run --bin founder-convert --features convert -- \
1313
--path tests/fixtures/draw \
1414
--exclude AdobeBlank
1515

1616
.PHONY: test-draw
17+
test: test-draw
1718
test-draw:
1819
# https://github.com/google/fonts/issues/5551
1920
# https://github.com/google/fonts/issues/5553
@@ -36,26 +37,38 @@ test-draw:
3637
--exclude web-platform-tests/css/css-writing-modes/support/tcu-font \
3738
--exclude web-platform-tests/fonts/adobe-fonts/CSSFWOrientationTest \
3839
--exclude web-platform-tests/fonts/adobe-fonts/CSSHWOrientationTest \
39-
--workers "$((4 * $(nproc --all)))" \
40+
--workers "$$((4 * $$(nproc --all)))" \
4041
> /dev/null
4142

42-
.PHONY: test-draw-selected
43-
test-draw-selected:
44-
cargo run --bin founder-draw --features draw -- \
45-
--path tests/fixtures/fonts \
46-
--mode free
47-
rm -rf tests/fixtures/draw/free/*
48-
cargo run --bin founder-draw --features draw -- \
49-
--path tests/fixtures/fonts \
50-
--mode local
51-
rm -rf tests/fixtures/draw/local/*
52-
cargo run --bin founder-draw --features draw -- \
53-
--path tests/fixtures/fonts \
54-
--mode global
55-
rm -rf tests/fixtures/draw/global/*
56-
[ "$$(git diff tests/fixtures/draw | wc -l | xargs)" = 0 ] || exit 1
43+
.PHONY: test-draw-selected-free
44+
test: test-draw-selected-free
45+
test-draw-selected-free:
46+
rm -rf tests/fixtures/draw/free
47+
cp -R tests/fixtures/fonts tests/fixtures/draw/free
48+
cargo run --bin founder-draw --features draw -- --path tests/fixtures/draw/free --mode free
49+
rm tests/fixtures/draw/free/*.{otf,ttf}
50+
[ "$$(git diff tests/fixtures/draw/free | wc -l | xargs)" = 0 ] || exit 1
51+
52+
.PHONY: test-draw-selected-local
53+
test: test-draw-selected-local
54+
test-draw-selected-local:
55+
rm -rf tests/fixtures/draw/local
56+
cp -R tests/fixtures/fonts tests/fixtures/draw/local
57+
cargo run --bin founder-draw --features draw -- --path tests/fixtures/draw/local --mode local
58+
rm tests/fixtures/draw/local/*.{otf,ttf}
59+
[ "$$(git diff tests/fixtures/draw/local | wc -l | xargs)" = 0 ] || exit 1
60+
61+
.PHONY: test-draw-selected-global
62+
test: test-draw-selected-global
63+
test-draw-selected-global:
64+
rm -rf tests/fixtures/draw/global
65+
cp -R tests/fixtures/fonts tests/fixtures/draw/global
66+
cargo run --bin founder-draw --features draw -- --path tests/fixtures/draw/global --mode global
67+
rm tests/fixtures/draw/global/*.{otf,ttf}
68+
[ "$$(git diff tests/fixtures/draw/global | wc -l | xargs)" = 0 ] || exit 1
5769

5870
.PHONY: test-name
71+
test: test-name
5972
test-name:
6073
# https://github.com/google/fonts/issues/5551
6174
# https://github.com/google/fonts/issues/5553
@@ -79,10 +92,11 @@ test-name:
7992
--exclude web-platform-tests/fonts/CSSTest/csstest-basic-bold \
8093
--exclude web-platform-tests/fonts/CSSTest/csstest-basic-bolditalic \
8194
--exclude web-platform-tests/fonts/CSSTest/csstest-basic-regular \
82-
--workers "$((4 * $(nproc --all)))" \
95+
--workers "$$((4 * $$(nproc --all)))" \
8396
> /dev/null
8497

8598
.PHONY: test-name-selected
99+
test: test-name-selected
86100
test-name-selected:
87101
cargo run --bin founder-name --features name -- \
88102
--path tests/fixtures/fonts
Loading
Loading

founder/tests/fixtures/draw/free/CrimsonText-Regular/Q-0x51.svg

-8
This file was deleted.
Loading

founder/tests/fixtures/draw/free/CrimsonText-Regular/W-0x57.svg

-8
This file was deleted.

founder/tests/fixtures/draw/free/CrimsonText-Regular/a-0x61.svg

-8
This file was deleted.
Loading

founder/tests/fixtures/draw/free/CrimsonText-Regular/i-0x69.svg

-8
This file was deleted.
Loading
Loading
Loading
Loading
Loading

founder/tests/fixtures/draw/free/Numans-Regular/Q-0x51.svg

-8
This file was deleted.
Loading

founder/tests/fixtures/draw/free/Numans-Regular/W-0x57.svg

-8
This file was deleted.

founder/tests/fixtures/draw/free/Numans-Regular/a-0x61.svg

-8
This file was deleted.
Loading

founder/tests/fixtures/draw/free/Numans-Regular/i-0x69.svg

-8
This file was deleted.

0 commit comments

Comments
 (0)