From 96d7915dcc76541b8642022bc790e2dc7e5f4a9a Mon Sep 17 00:00:00 2001 From: Sergei Eremenko Date: Tue, 24 Aug 2021 21:33:30 +0300 Subject: [PATCH] Add test for searching unoptimized icons --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b3906af8b8..5dbc394093 100644 --- a/Makefile +++ b/Makefile @@ -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