@@ -4,16 +4,17 @@ RUST_BACKTRACE := full
4
4
all : test
5
5
6
6
.PHONY : test
7
- test : test-draw test-draw-selected
8
- test : test-name test-name-selected
7
+ test :
9
8
10
9
.PHONY : test-convert-selected
10
+ test : test-convert-selected
11
11
test-convert-selected :
12
12
cargo run --bin founder-convert --features convert -- \
13
13
--path tests/fixtures/draw \
14
14
--exclude AdobeBlank
15
15
16
16
.PHONY : test-draw
17
+ test : test-draw
17
18
test-draw :
18
19
# https://github.com/google/fonts/issues/5551
19
20
# https://github.com/google/fonts/issues/5553
@@ -36,26 +37,38 @@ test-draw:
36
37
--exclude web-platform-tests/css/css-writing-modes/support/tcu-font \
37
38
--exclude web-platform-tests/fonts/adobe-fonts/CSSFWOrientationTest \
38
39
--exclude web-platform-tests/fonts/adobe-fonts/CSSHWOrientationTest \
39
- --workers " $(( 4 * $(nproc -- all)) )" \
40
+ --workers " $$ ((4 * $ $ (nproc --all)))" \
40
41
> /dev/null
41
42
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
57
69
58
70
.PHONY : test-name
71
+ test : test-name
59
72
test-name :
60
73
# https://github.com/google/fonts/issues/5551
61
74
# https://github.com/google/fonts/issues/5553
@@ -79,10 +92,11 @@ test-name:
79
92
--exclude web-platform-tests/fonts/CSSTest/csstest-basic-bold \
80
93
--exclude web-platform-tests/fonts/CSSTest/csstest-basic-bolditalic \
81
94
--exclude web-platform-tests/fonts/CSSTest/csstest-basic-regular \
82
- --workers " $(( 4 * $(nproc -- all)) )" \
95
+ --workers " $$ ((4 * $ $ (nproc --all)))" \
83
96
> /dev/null
84
97
85
98
.PHONY : test-name-selected
99
+ test : test-name-selected
86
100
test-name-selected :
87
101
cargo run --bin founder-name --features name -- \
88
102
--path tests/fixtures/fonts
0 commit comments