Skip to content

Commit 96d7915

Browse files
committed
Add test for searching unoptimized icons
1 parent da6b3bd commit 96d7915

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test: test_short
5353
test-all: test_short test_long
5454

5555
.PHONY: test_short
56-
test_short: test_renderer test_svg_elems test_symlinks test_filenames
56+
test_short: test_renderer test_optimization test_svg_elems test_symlinks test_filenames
5757

5858
.PHONY: test_long
5959
test_long: test_xml_struct
@@ -66,6 +66,13 @@ test_renderer:
6666
-e 'd="[a-zA-Z0-9 -.]+\s\.[a-zA-Z0-9 -.]+"' \
6767
$(ICON_THEMES)
6868

69+
.PHONY: test_optimization
70+
test_optimization:
71+
# >>> Searching for unoptimized icons
72+
@! LC_ALL=C grep -E -rl --include='*.svg' \
73+
-e '^<\?xml' \
74+
$(ICON_THEMES)
75+
6976
.PHONY: test_svg_elems
7077
test_svg_elems:
7178
# >>> Searching for icons with embedded objects

0 commit comments

Comments
 (0)