aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@kde.org>2014-04-17 09:55:33 +0100
committerAlex Merry <alex.merry@kde.org>2014-04-25 10:37:28 +0100
commit50b164a7ce83cdaec18209c7c2226d2fdb9cf29e (patch)
tree4f18f6a10f00265f30ef3e2428648d8ad72de4a1 /tests
parent23829defe0455cf57518ee29fee2988054ed51b7 (diff)
downloadextra-cmake-modules-50b164a7ce83cdaec18209c7c2226d2fdb9cf29e.tar.gz
extra-cmake-modules-50b164a7ce83cdaec18209c7c2226d2fdb9cf29e.tar.bz2
New syntax for ecm_install_icons()
This requires the icon files to be specified (which is better than globbing, because the build system will then be able to tell when files are added or removed and re-run CMake). It also removes the theme name from the filename pattern: the old code used a shorthand theme name for a small number of themes, and didn't allow any other themes. Extending this to arbitrary themes could cause problems with themes that have numbers or hyphens (or whatever other delimiter character was used) in their names. Most users are likely to just want to install to a single theme anyway (based on a random sampling of users of kde4_install_icons), so that is what the new syntax requires. The old syntax still works and behaves as before. ecm_update_iconcache is renamed to _ecm_update_iconcache - it was never documented as public API anyway. REVIEW: 117617
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt15
-rw-r--r--tests/ECMInstallIconsTest/128-devices-drive-removable-media-usb-pendrive.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/128-emblems-emblem-mounted.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/128-places-home.mngbin0 -> 450 bytes
-rw-r--r--tests/ECMInstallIconsTest/16-actions-badext.txt1
-rw-r--r--tests/ECMInstallIconsTest/16-actions-computer.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/16-animations-loading.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/16-apps-cmake.pngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/16-categories-system-help.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/16-emotes-face-smile.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/16-intl-something.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/16-status-user-online.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/CMakeLists.txt97
-rw-r--r--tests/ECMInstallIconsTest/aa-actions-badsize.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/badlynamedfile.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/check_tree.cmake.in23
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/badly-named-files-test/hicolor/16x16/actions/badext.txt1
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/emblems/l10n/en_US/emblem-mounted.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/places/l10n/en_US/home.mngbin0 -> 450 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/actions/l10n/en_US/computer.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/animations/l10n/en_US/loading.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/apps/l10n/en_US/cmake.pngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/categories/l10n/en_US/system-help.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/emotes/l10n/en_US/face-smile.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/intl/l10n/en_US/something.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/status/l10n/en_US/user-online.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/scalable/mimetypes/l10n/en_US/fonts-package.svgzbin0 -> 819 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/devices/drive-removable-media-usb-pendrive.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/emblems/emblem-mounted.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/places/home.mngbin0 -> 450 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/actions/computer.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/animations/loading.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/apps/cmake.pngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/categories/system-help.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/emotes/face-smile.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/intl/something.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/status/user-online.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/scalable/mimetypes/fonts-package.svgzbin0 -> 819 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/single-file-test/hicolor/16x16/actions/computer.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/emblems/l10n/en_US/emblem-mounted.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/places/l10n/en_US/home.mngbin0 -> 450 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/actions/l10n/en_US/computer.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/animations/l10n/en_US/loading.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/apps/l10n/en_US/cmake.pngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/categories/l10n/en_US/system-help.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/emotes/l10n/en_US/face-smile.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/intl/l10n/en_US/something.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/status/l10n/en_US/user-online.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/scalable/mimetypes/l10n/en_US/fonts-package.svgzbin0 -> 819 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/devices/drive-removable-media-usb-pendrive.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/emblems/emblem-mounted.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/places/home.mngbin0 -> 450 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/actions/computer.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/animations/loading.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/apps/cmake.pngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/categories/system-help.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/emotes/face-smile.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/intl/something.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/status/user-online.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/scalable/mimetypes/fonts-package.svgzbin0 -> 819 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/emblem-mounted.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/l10n/en_US/emblem-mounted.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/devices/drive-removable-media-usb-pendrive.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/home.mngbin0 -> 450 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/l10n/en_US/home.mngbin0 -> 450 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/computer.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/l10n/en_US/computer.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/animations/loading.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/apps/cmake.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/emotes/face-smile.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/intl/something.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/status/user-online.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/fonts-package.svgzbin0 -> 819 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/l10n/en_US/fonts-package.svgzbin0 -> 819 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/l10n/en_US/system-help.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/system-help.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/sc-mimetypes-fonts-package.svgzbin0 -> 819 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax-l10n/CMakeLists.txt1
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax-l10n/cr128-emblems-emblem-mounted.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax-l10n/hi128-places-home.mngbin0 -> 450 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax-l10n/hi16-actions-computer.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax-l10n/losc-mimetypes-fonts-package.svgzbin0 -> 819 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax-l10n/ox16-categories-system-help.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/CMakeLists.txt1
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/cr128-emblems-emblem-mounted.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/hi128-devices-drive-removable-media-usb-pendrive.pngbin0 -> 1860 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/hi128-places-home.mngbin0 -> 450 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/hi16-actions-computer.pngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/hi16-animations-loading.mngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/hi16-apps-cmake.pngbin0 -> 233 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/hi16-emotes-face-smile.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/hi16-intl-something.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/hi16-status-user-online.pngbin0 -> 146 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/losc-mimetypes-fonts-package.svgzbin0 -> 819 bytes
-rw-r--r--tests/ECMInstallIconsTest/v1-syntax/ox16-categories-system-help.mngbin0 -> 233 bytes
97 files changed, 135 insertions, 4 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index e464a030..a3e619a7 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -8,16 +8,23 @@ macro(ADD_TEST_MACRO NAME COMMAND)
string(REGEX REPLACE "[^.]*\\." "" proj "${NAME}")
add_test(${NAME} ${CMAKE_CTEST_COMMAND}
--build-and-test
- "${CMAKE_SOURCE_DIR}/tests/${dir}"
- "${CMAKE_BINARY_DIR}/tests/${dir}"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${dir}"
+ "${CMAKE_CURRENT_BINARY_DIR}/${dir}"
--build-two-config
--build-generator ${CMAKE_GENERATOR}
--build-makeprogram ${CMAKE_MAKE_PROGRAM}
--build-project ${proj}
${${NAME}_EXTRA_OPTIONS}
--test-command ${COMMAND} ${ARGN})
-# list(APPEND TEST_BUILD_DIRS "${CMAKE_BINARY_DIR}/tests/${dir}")
endmacro(ADD_TEST_MACRO)
-
add_test_macro(ExecuteAllModules ExecuteAllModules)
+
+set(ECMInstallIconsTest_EXTRA_OPTIONS
+ --build-target install
+ --build-options
+ "-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_CURRENT_BINARY_DIR}/ECMInstallIconsTest/InstallDirectory"
+)
+add_test_macro(ECMInstallIconsTest
+ ${CMAKE_COMMAND} -P "${CMAKE_CURRENT_BINARY_DIR}/ECMInstallIconsTest/check_tree.cmake"
+)
diff --git a/tests/ECMInstallIconsTest/128-devices-drive-removable-media-usb-pendrive.png b/tests/ECMInstallIconsTest/128-devices-drive-removable-media-usb-pendrive.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/128-devices-drive-removable-media-usb-pendrive.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/128-emblems-emblem-mounted.png b/tests/ECMInstallIconsTest/128-emblems-emblem-mounted.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/128-emblems-emblem-mounted.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/128-places-home.mng b/tests/ECMInstallIconsTest/128-places-home.mng
new file mode 100644
index 00000000..c81faca3
--- /dev/null
+++ b/tests/ECMInstallIconsTest/128-places-home.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/16-actions-badext.txt b/tests/ECMInstallIconsTest/16-actions-badext.txt
new file mode 100644
index 00000000..9daeafb9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/16-actions-badext.txt
@@ -0,0 +1 @@
+test
diff --git a/tests/ECMInstallIconsTest/16-actions-computer.png b/tests/ECMInstallIconsTest/16-actions-computer.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/16-actions-computer.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/16-animations-loading.mng b/tests/ECMInstallIconsTest/16-animations-loading.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/16-animations-loading.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/16-apps-cmake.png b/tests/ECMInstallIconsTest/16-apps-cmake.png
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/16-apps-cmake.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/16-categories-system-help.mng b/tests/ECMInstallIconsTest/16-categories-system-help.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/16-categories-system-help.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/16-emotes-face-smile.png b/tests/ECMInstallIconsTest/16-emotes-face-smile.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/16-emotes-face-smile.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/16-intl-something.png b/tests/ECMInstallIconsTest/16-intl-something.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/16-intl-something.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/16-status-user-online.png b/tests/ECMInstallIconsTest/16-status-user-online.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/16-status-user-online.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/CMakeLists.txt b/tests/ECMInstallIconsTest/CMakeLists.txt
new file mode 100644
index 00000000..85f2d9f5
--- /dev/null
+++ b/tests/ECMInstallIconsTest/CMakeLists.txt
@@ -0,0 +1,97 @@
+project(ECMInstallIconsTest)
+cmake_minimum_required(VERSION 2.8.12)
+
+set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../modules)
+
+# make sure the test install dir is clean
+file(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}")
+
+include(ECMInstallIcons)
+
+add_subdirectory(v1-syntax)
+add_subdirectory(v1-syntax-l10n)
+
+ecm_install_icons(
+ ICONS 16-actions-computer.png
+ DESTINATION single-file-test
+)
+
+ecm_install_icons(
+ ICONS
+ 16-actions-computer.png
+ 16-animations-loading.mng
+ 16-apps-cmake.png
+ 16-categories-system-help.mng
+ 16-emotes-face-smile.png
+ 16-intl-something.png
+ 16-status-user-online.png
+ 128-devices-drive-removable-media-usb-pendrive.png
+ 128-emblems-emblem-mounted.png
+ 128-places-home.mng
+ sc-mimetypes-fonts-package.svgz
+ DESTINATION multi-file-test
+)
+
+ecm_install_icons(
+ ICONS
+ 16-actions-computer.png
+ 16-animations-loading.mng
+ 16-apps-cmake.png
+ 16-categories-system-help.mng
+ 16-emotes-face-smile.png
+ 16-intl-something.png
+ 16-status-user-online.png
+ 128-devices-drive-removable-media-usb-pendrive.png
+ 128-emblems-emblem-mounted.png
+ 128-places-home.mng
+ sc-mimetypes-fonts-package.svgz
+ DESTINATION themed-test
+ THEME theme-name-2
+)
+
+ecm_install_icons(
+ ICONS
+ 16-actions-computer.png
+ 16-animations-loading.mng
+ 16-apps-cmake.png
+ 16-categories-system-help.mng
+ 16-emotes-face-smile.png
+ 16-intl-something.png
+ 16-status-user-online.png
+ 128-devices-drive-removable-media-usb-pendrive.png
+ 128-emblems-emblem-mounted.png
+ 128-places-home.mng
+ sc-mimetypes-fonts-package.svgz
+ DESTINATION lang-test
+ LANG en_US
+)
+
+ecm_install_icons(
+ ICONS
+ 16-actions-computer.png
+ 16-animations-loading.mng
+ 16-apps-cmake.png
+ 16-categories-system-help.mng
+ 16-emotes-face-smile.png
+ 16-intl-something.png
+ 16-status-user-online.png
+ 128-devices-drive-removable-media-usb-pendrive.png
+ 128-emblems-emblem-mounted.png
+ 128-places-home.mng
+ sc-mimetypes-fonts-package.svgz
+ DESTINATION themed-lang-test
+ THEME oxygen
+ LANG en_US
+)
+
+# all these should be warned about
+ecm_install_icons(
+ ICONS
+ aa-actions-badsize.png # ignored
+ badlynamedfile.png # ignored
+ 16-actions-badext.txt # copied
+ DESTINATION badly-named-files-test
+)
+
+# this will be run by CTest
+configure_file(check_tree.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/check_tree.cmake" @ONLY)
diff --git a/tests/ECMInstallIconsTest/aa-actions-badsize.png b/tests/ECMInstallIconsTest/aa-actions-badsize.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/aa-actions-badsize.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/badlynamedfile.png b/tests/ECMInstallIconsTest/badlynamedfile.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/badlynamedfile.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/check_tree.cmake.in b/tests/ECMInstallIconsTest/check_tree.cmake.in
new file mode 100644
index 00000000..6d14246b
--- /dev/null
+++ b/tests/ECMInstallIconsTest/check_tree.cmake.in
@@ -0,0 +1,23 @@
+set(EXP_TREE "@CMAKE_CURRENT_SOURCE_DIR@/expected-tree")
+set(ACTUAL_TREE "@CMAKE_INSTALL_PREFIX@")
+
+file(GLOB_RECURSE exp_files RELATIVE "${EXP_TREE}" "${EXP_TREE}/*")
+file(GLOB_RECURSE actual_files RELATIVE "${ACTUAL_TREE}" "${ACTUAL_TREE}/*")
+list(SORT exp_files)
+list(SORT actual_files)
+
+if(NOT exp_files STREQUAL actual_files)
+ foreach(f ${exp_files})
+ list(FIND actual_files "${f}" result)
+ if(result EQUAL -1)
+ message(WARNING "${f} was expected, but not found")
+ endif()
+ endforeach()
+ foreach(f ${actual_files})
+ list(FIND exp_files "${f}" result)
+ if(result EQUAL -1)
+ message(WARNING "${f} was found, but not expected")
+ endif()
+ endforeach()
+ message(FATAL_ERROR "Trees differ!")
+endif()
diff --git a/tests/ECMInstallIconsTest/expected-tree/badly-named-files-test/hicolor/16x16/actions/badext.txt b/tests/ECMInstallIconsTest/expected-tree/badly-named-files-test/hicolor/16x16/actions/badext.txt
new file mode 100644
index 00000000..9daeafb9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/badly-named-files-test/hicolor/16x16/actions/badext.txt
@@ -0,0 +1 @@
+test
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.png b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/emblems/l10n/en_US/emblem-mounted.png b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/emblems/l10n/en_US/emblem-mounted.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/emblems/l10n/en_US/emblem-mounted.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/places/l10n/en_US/home.mng b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/places/l10n/en_US/home.mng
new file mode 100644
index 00000000..c81faca3
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/places/l10n/en_US/home.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/actions/l10n/en_US/computer.png b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/actions/l10n/en_US/computer.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/actions/l10n/en_US/computer.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/animations/l10n/en_US/loading.mng b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/animations/l10n/en_US/loading.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/animations/l10n/en_US/loading.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/apps/l10n/en_US/cmake.png b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/apps/l10n/en_US/cmake.png
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/apps/l10n/en_US/cmake.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/categories/l10n/en_US/system-help.mng b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/categories/l10n/en_US/system-help.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/categories/l10n/en_US/system-help.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/emotes/l10n/en_US/face-smile.png b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/emotes/l10n/en_US/face-smile.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/emotes/l10n/en_US/face-smile.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/intl/l10n/en_US/something.png b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/intl/l10n/en_US/something.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/intl/l10n/en_US/something.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/status/l10n/en_US/user-online.png b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/status/l10n/en_US/user-online.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/status/l10n/en_US/user-online.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/scalable/mimetypes/l10n/en_US/fonts-package.svgz b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/scalable/mimetypes/l10n/en_US/fonts-package.svgz
new file mode 100644
index 00000000..125002e8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/scalable/mimetypes/l10n/en_US/fonts-package.svgz
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/devices/drive-removable-media-usb-pendrive.png b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/devices/drive-removable-media-usb-pendrive.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/devices/drive-removable-media-usb-pendrive.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/emblems/emblem-mounted.png b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/emblems/emblem-mounted.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/emblems/emblem-mounted.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/places/home.mng b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/places/home.mng
new file mode 100644
index 00000000..c81faca3
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/places/home.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/actions/computer.png b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/actions/computer.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/actions/computer.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/animations/loading.mng b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/animations/loading.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/animations/loading.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/apps/cmake.png b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/apps/cmake.png
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/apps/cmake.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/categories/system-help.mng b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/categories/system-help.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/categories/system-help.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/emotes/face-smile.png b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/emotes/face-smile.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/emotes/face-smile.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/intl/something.png b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/intl/something.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/intl/something.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/status/user-online.png b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/status/user-online.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/status/user-online.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/scalable/mimetypes/fonts-package.svgz b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/scalable/mimetypes/fonts-package.svgz
new file mode 100644
index 00000000..125002e8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/scalable/mimetypes/fonts-package.svgz
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/single-file-test/hicolor/16x16/actions/computer.png b/tests/ECMInstallIconsTest/expected-tree/single-file-test/hicolor/16x16/actions/computer.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/single-file-test/hicolor/16x16/actions/computer.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.png b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/emblems/l10n/en_US/emblem-mounted.png b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/emblems/l10n/en_US/emblem-mounted.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/emblems/l10n/en_US/emblem-mounted.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/places/l10n/en_US/home.mng b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/places/l10n/en_US/home.mng
new file mode 100644
index 00000000..c81faca3
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/places/l10n/en_US/home.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/actions/l10n/en_US/computer.png b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/actions/l10n/en_US/computer.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/actions/l10n/en_US/computer.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/animations/l10n/en_US/loading.mng b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/animations/l10n/en_US/loading.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/animations/l10n/en_US/loading.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/apps/l10n/en_US/cmake.png b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/apps/l10n/en_US/cmake.png
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/apps/l10n/en_US/cmake.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/categories/l10n/en_US/system-help.mng b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/categories/l10n/en_US/system-help.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/categories/l10n/en_US/system-help.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/emotes/l10n/en_US/face-smile.png b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/emotes/l10n/en_US/face-smile.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/emotes/l10n/en_US/face-smile.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/intl/l10n/en_US/something.png b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/intl/l10n/en_US/something.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/intl/l10n/en_US/something.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/status/l10n/en_US/user-online.png b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/status/l10n/en_US/user-online.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/status/l10n/en_US/user-online.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/scalable/mimetypes/l10n/en_US/fonts-package.svgz b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/scalable/mimetypes/l10n/en_US/fonts-package.svgz
new file mode 100644
index 00000000..125002e8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/scalable/mimetypes/l10n/en_US/fonts-package.svgz
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/devices/drive-removable-media-usb-pendrive.png b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/devices/drive-removable-media-usb-pendrive.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/devices/drive-removable-media-usb-pendrive.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/emblems/emblem-mounted.png b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/emblems/emblem-mounted.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/emblems/emblem-mounted.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/places/home.mng b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/places/home.mng
new file mode 100644
index 00000000..c81faca3
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/places/home.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/actions/computer.png b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/actions/computer.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/actions/computer.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/animations/loading.mng b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/animations/loading.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/animations/loading.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/apps/cmake.png b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/apps/cmake.png
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/apps/cmake.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/categories/system-help.mng b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/categories/system-help.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/categories/system-help.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/emotes/face-smile.png b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/emotes/face-smile.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/emotes/face-smile.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/intl/something.png b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/intl/something.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/intl/something.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/status/user-online.png b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/status/user-online.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/status/user-online.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/scalable/mimetypes/fonts-package.svgz b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/scalable/mimetypes/fonts-package.svgz
new file mode 100644
index 00000000..125002e8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/scalable/mimetypes/fonts-package.svgz
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/emblem-mounted.png b/tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/emblem-mounted.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/emblem-mounted.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/l10n/en_US/emblem-mounted.png b/tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/l10n/en_US/emblem-mounted.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/l10n/en_US/emblem-mounted.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/devices/drive-removable-media-usb-pendrive.png b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/devices/drive-removable-media-usb-pendrive.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/devices/drive-removable-media-usb-pendrive.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/home.mng b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/home.mng
new file mode 100644
index 00000000..c81faca3
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/home.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/l10n/en_US/home.mng b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/l10n/en_US/home.mng
new file mode 100644
index 00000000..c81faca3
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/l10n/en_US/home.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/computer.png b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/computer.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/computer.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/l10n/en_US/computer.png b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/l10n/en_US/computer.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/l10n/en_US/computer.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/animations/loading.mng b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/animations/loading.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/animations/loading.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/apps/cmake.png b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/apps/cmake.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/apps/cmake.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/emotes/face-smile.png b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/emotes/face-smile.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/emotes/face-smile.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/intl/something.png b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/intl/something.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/intl/something.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/status/user-online.png b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/status/user-online.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/status/user-online.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/fonts-package.svgz b/tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/fonts-package.svgz
new file mode 100644
index 00000000..125002e8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/fonts-package.svgz
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/l10n/en_US/fonts-package.svgz b/tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/l10n/en_US/fonts-package.svgz
new file mode 100644
index 00000000..125002e8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/l10n/en_US/fonts-package.svgz
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/l10n/en_US/system-help.mng b/tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/l10n/en_US/system-help.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/l10n/en_US/system-help.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/system-help.mng b/tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/system-help.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/system-help.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/sc-mimetypes-fonts-package.svgz b/tests/ECMInstallIconsTest/sc-mimetypes-fonts-package.svgz
new file mode 100644
index 00000000..125002e8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/sc-mimetypes-fonts-package.svgz
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax-l10n/CMakeLists.txt b/tests/ECMInstallIconsTest/v1-syntax-l10n/CMakeLists.txt
new file mode 100644
index 00000000..c959e469
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax-l10n/CMakeLists.txt
@@ -0,0 +1 @@
+ecm_install_icons(v1-icons en_US)
diff --git a/tests/ECMInstallIconsTest/v1-syntax-l10n/cr128-emblems-emblem-mounted.png b/tests/ECMInstallIconsTest/v1-syntax-l10n/cr128-emblems-emblem-mounted.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax-l10n/cr128-emblems-emblem-mounted.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax-l10n/hi128-places-home.mng b/tests/ECMInstallIconsTest/v1-syntax-l10n/hi128-places-home.mng
new file mode 100644
index 00000000..c81faca3
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax-l10n/hi128-places-home.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax-l10n/hi16-actions-computer.png b/tests/ECMInstallIconsTest/v1-syntax-l10n/hi16-actions-computer.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax-l10n/hi16-actions-computer.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax-l10n/losc-mimetypes-fonts-package.svgz b/tests/ECMInstallIconsTest/v1-syntax-l10n/losc-mimetypes-fonts-package.svgz
new file mode 100644
index 00000000..125002e8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax-l10n/losc-mimetypes-fonts-package.svgz
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax-l10n/ox16-categories-system-help.mng b/tests/ECMInstallIconsTest/v1-syntax-l10n/ox16-categories-system-help.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax-l10n/ox16-categories-system-help.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/CMakeLists.txt b/tests/ECMInstallIconsTest/v1-syntax/CMakeLists.txt
new file mode 100644
index 00000000..5ff25a5c
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/CMakeLists.txt
@@ -0,0 +1 @@
+ecm_install_icons(v1-icons)
diff --git a/tests/ECMInstallIconsTest/v1-syntax/cr128-emblems-emblem-mounted.png b/tests/ECMInstallIconsTest/v1-syntax/cr128-emblems-emblem-mounted.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/cr128-emblems-emblem-mounted.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/hi128-devices-drive-removable-media-usb-pendrive.png b/tests/ECMInstallIconsTest/v1-syntax/hi128-devices-drive-removable-media-usb-pendrive.png
new file mode 100644
index 00000000..715218d9
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/hi128-devices-drive-removable-media-usb-pendrive.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/hi128-places-home.mng b/tests/ECMInstallIconsTest/v1-syntax/hi128-places-home.mng
new file mode 100644
index 00000000..c81faca3
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/hi128-places-home.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/hi16-actions-computer.png b/tests/ECMInstallIconsTest/v1-syntax/hi16-actions-computer.png
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/hi16-actions-computer.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/hi16-animations-loading.mng b/tests/ECMInstallIconsTest/v1-syntax/hi16-animations-loading.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/hi16-animations-loading.mng
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/hi16-apps-cmake.png b/tests/ECMInstallIconsTest/v1-syntax/hi16-apps-cmake.png
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/hi16-apps-cmake.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/hi16-emotes-face-smile.png b/tests/ECMInstallIconsTest/v1-syntax/hi16-emotes-face-smile.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/hi16-emotes-face-smile.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/hi16-intl-something.png b/tests/ECMInstallIconsTest/v1-syntax/hi16-intl-something.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/hi16-intl-something.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/hi16-status-user-online.png b/tests/ECMInstallIconsTest/v1-syntax/hi16-status-user-online.png
new file mode 100644
index 00000000..c60150f8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/hi16-status-user-online.png
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/losc-mimetypes-fonts-package.svgz b/tests/ECMInstallIconsTest/v1-syntax/losc-mimetypes-fonts-package.svgz
new file mode 100644
index 00000000..125002e8
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/losc-mimetypes-fonts-package.svgz
Binary files differ
diff --git a/tests/ECMInstallIconsTest/v1-syntax/ox16-categories-system-help.mng b/tests/ECMInstallIconsTest/v1-syntax/ox16-categories-system-help.mng
new file mode 100644
index 00000000..ed9a1181
--- /dev/null
+++ b/tests/ECMInstallIconsTest/v1-syntax/ox16-categories-system-help.mng
Binary files differ