Add test for searching unoptimized icons

This commit is contained in:
Sergei Eremenko 2021-08-24 21:33:30 +03:00
parent da6b3bd34d
commit 96d7915dcc
No known key found for this signature in database
GPG key ID: AB6D54C1C16D2507

View file

@ -53,7 +53,7 @@ test: test_short
test-all: test_short test_long
.PHONY: test_short
test_short: test_renderer test_svg_elems test_symlinks test_filenames
test_short: test_renderer test_optimization test_svg_elems test_symlinks test_filenames
.PHONY: test_long
test_long: test_xml_struct
@ -66,6 +66,13 @@ test_renderer:
-e 'd="[a-zA-Z0-9 -.]+\s\.[a-zA-Z0-9 -.]+"' \
$(ICON_THEMES)
.PHONY: test_optimization
test_optimization:
# >>> Searching for unoptimized icons
@! LC_ALL=C grep -E -rl --include='*.svg' \
-e '^<\?xml' \
$(ICON_THEMES)
.PHONY: test_svg_elems
test_svg_elems:
# >>> Searching for icons with embedded objects