From 50b164a7ce83cdaec18209c7c2226d2fdb9cf29e Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Thu, 17 Apr 2014 09:55:33 +0100 Subject: 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 --- ...-devices-drive-removable-media-usb-pendrive.png | Bin 0 -> 1860 bytes .../128-emblems-emblem-mounted.png | Bin 0 -> 1860 bytes tests/ECMInstallIconsTest/128-places-home.mng | Bin 0 -> 450 bytes tests/ECMInstallIconsTest/16-actions-badext.txt | 1 + tests/ECMInstallIconsTest/16-actions-computer.png | Bin 0 -> 146 bytes .../ECMInstallIconsTest/16-animations-loading.mng | Bin 0 -> 233 bytes tests/ECMInstallIconsTest/16-apps-cmake.png | Bin 0 -> 233 bytes .../16-categories-system-help.mng | Bin 0 -> 233 bytes tests/ECMInstallIconsTest/16-emotes-face-smile.png | Bin 0 -> 146 bytes tests/ECMInstallIconsTest/16-intl-something.png | Bin 0 -> 146 bytes .../ECMInstallIconsTest/16-status-user-online.png | Bin 0 -> 146 bytes tests/ECMInstallIconsTest/CMakeLists.txt | 97 +++++++++++++++++++++ tests/ECMInstallIconsTest/aa-actions-badsize.png | Bin 0 -> 146 bytes tests/ECMInstallIconsTest/badlynamedfile.png | Bin 0 -> 146 bytes tests/ECMInstallIconsTest/check_tree.cmake.in | 23 +++++ .../hicolor/16x16/actions/badext.txt | 1 + .../en_US/drive-removable-media-usb-pendrive.png | Bin 0 -> 1860 bytes .../128x128/emblems/l10n/en_US/emblem-mounted.png | Bin 0 -> 1860 bytes .../hicolor/128x128/places/l10n/en_US/home.mng | Bin 0 -> 450 bytes .../hicolor/16x16/actions/l10n/en_US/computer.png | Bin 0 -> 146 bytes .../16x16/animations/l10n/en_US/loading.mng | Bin 0 -> 233 bytes .../hicolor/16x16/apps/l10n/en_US/cmake.png | Bin 0 -> 233 bytes .../16x16/categories/l10n/en_US/system-help.mng | Bin 0 -> 233 bytes .../hicolor/16x16/emotes/l10n/en_US/face-smile.png | Bin 0 -> 146 bytes .../hicolor/16x16/intl/l10n/en_US/something.png | Bin 0 -> 146 bytes .../16x16/status/l10n/en_US/user-online.png | Bin 0 -> 146 bytes .../mimetypes/l10n/en_US/fonts-package.svgz | Bin 0 -> 819 bytes .../devices/drive-removable-media-usb-pendrive.png | Bin 0 -> 1860 bytes .../hicolor/128x128/emblems/emblem-mounted.png | Bin 0 -> 1860 bytes .../hicolor/128x128/places/home.mng | Bin 0 -> 450 bytes .../hicolor/16x16/actions/computer.png | Bin 0 -> 146 bytes .../hicolor/16x16/animations/loading.mng | Bin 0 -> 233 bytes .../multi-file-test/hicolor/16x16/apps/cmake.png | Bin 0 -> 233 bytes .../hicolor/16x16/categories/system-help.mng | Bin 0 -> 233 bytes .../hicolor/16x16/emotes/face-smile.png | Bin 0 -> 146 bytes .../hicolor/16x16/intl/something.png | Bin 0 -> 146 bytes .../hicolor/16x16/status/user-online.png | Bin 0 -> 146 bytes .../hicolor/scalable/mimetypes/fonts-package.svgz | Bin 0 -> 819 bytes .../hicolor/16x16/actions/computer.png | Bin 0 -> 146 bytes .../en_US/drive-removable-media-usb-pendrive.png | Bin 0 -> 1860 bytes .../128x128/emblems/l10n/en_US/emblem-mounted.png | Bin 0 -> 1860 bytes .../oxygen/128x128/places/l10n/en_US/home.mng | Bin 0 -> 450 bytes .../oxygen/16x16/actions/l10n/en_US/computer.png | Bin 0 -> 146 bytes .../oxygen/16x16/animations/l10n/en_US/loading.mng | Bin 0 -> 233 bytes .../oxygen/16x16/apps/l10n/en_US/cmake.png | Bin 0 -> 233 bytes .../16x16/categories/l10n/en_US/system-help.mng | Bin 0 -> 233 bytes .../oxygen/16x16/emotes/l10n/en_US/face-smile.png | Bin 0 -> 146 bytes .../oxygen/16x16/intl/l10n/en_US/something.png | Bin 0 -> 146 bytes .../oxygen/16x16/status/l10n/en_US/user-online.png | Bin 0 -> 146 bytes .../mimetypes/l10n/en_US/fonts-package.svgz | Bin 0 -> 819 bytes .../devices/drive-removable-media-usb-pendrive.png | Bin 0 -> 1860 bytes .../128x128/emblems/emblem-mounted.png | Bin 0 -> 1860 bytes .../theme-name-2/128x128/places/home.mng | Bin 0 -> 450 bytes .../theme-name-2/16x16/actions/computer.png | Bin 0 -> 146 bytes .../theme-name-2/16x16/animations/loading.mng | Bin 0 -> 233 bytes .../themed-test/theme-name-2/16x16/apps/cmake.png | Bin 0 -> 233 bytes .../theme-name-2/16x16/categories/system-help.mng | Bin 0 -> 233 bytes .../theme-name-2/16x16/emotes/face-smile.png | Bin 0 -> 146 bytes .../theme-name-2/16x16/intl/something.png | Bin 0 -> 146 bytes .../theme-name-2/16x16/status/user-online.png | Bin 0 -> 146 bytes .../scalable/mimetypes/fonts-package.svgz | Bin 0 -> 819 bytes .../crystalsvg/128x128/emblems/emblem-mounted.png | Bin 0 -> 1860 bytes .../128x128/emblems/l10n/en_US/emblem-mounted.png | Bin 0 -> 1860 bytes .../devices/drive-removable-media-usb-pendrive.png | Bin 0 -> 1860 bytes .../v1-icons/hicolor/128x128/places/home.mng | Bin 0 -> 450 bytes .../hicolor/128x128/places/l10n/en_US/home.mng | Bin 0 -> 450 bytes .../v1-icons/hicolor/16x16/actions/computer.png | Bin 0 -> 146 bytes .../hicolor/16x16/actions/l10n/en_US/computer.png | Bin 0 -> 146 bytes .../v1-icons/hicolor/16x16/animations/loading.mng | Bin 0 -> 233 bytes .../v1-icons/hicolor/16x16/apps/cmake.png | Bin 0 -> 146 bytes .../v1-icons/hicolor/16x16/emotes/face-smile.png | Bin 0 -> 146 bytes .../v1-icons/hicolor/16x16/intl/something.png | Bin 0 -> 146 bytes .../v1-icons/hicolor/16x16/status/user-online.png | Bin 0 -> 146 bytes .../locolor/scalable/mimetypes/fonts-package.svgz | Bin 0 -> 819 bytes .../mimetypes/l10n/en_US/fonts-package.svgz | Bin 0 -> 819 bytes .../16x16/categories/l10n/en_US/system-help.mng | Bin 0 -> 233 bytes .../oxygen/16x16/categories/system-help.mng | Bin 0 -> 233 bytes .../sc-mimetypes-fonts-package.svgz | Bin 0 -> 819 bytes .../v1-syntax-l10n/CMakeLists.txt | 1 + .../cr128-emblems-emblem-mounted.png | Bin 0 -> 1860 bytes .../v1-syntax-l10n/hi128-places-home.mng | Bin 0 -> 450 bytes .../v1-syntax-l10n/hi16-actions-computer.png | Bin 0 -> 146 bytes .../losc-mimetypes-fonts-package.svgz | Bin 0 -> 819 bytes .../v1-syntax-l10n/ox16-categories-system-help.mng | Bin 0 -> 233 bytes tests/ECMInstallIconsTest/v1-syntax/CMakeLists.txt | 1 + .../v1-syntax/cr128-emblems-emblem-mounted.png | Bin 0 -> 1860 bytes ...-devices-drive-removable-media-usb-pendrive.png | Bin 0 -> 1860 bytes .../v1-syntax/hi128-places-home.mng | Bin 0 -> 450 bytes .../v1-syntax/hi16-actions-computer.png | Bin 0 -> 233 bytes .../v1-syntax/hi16-animations-loading.mng | Bin 0 -> 233 bytes .../v1-syntax/hi16-apps-cmake.png | Bin 0 -> 233 bytes .../v1-syntax/hi16-emotes-face-smile.png | Bin 0 -> 146 bytes .../v1-syntax/hi16-intl-something.png | Bin 0 -> 146 bytes .../v1-syntax/hi16-status-user-online.png | Bin 0 -> 146 bytes .../v1-syntax/losc-mimetypes-fonts-package.svgz | Bin 0 -> 819 bytes .../v1-syntax/ox16-categories-system-help.mng | Bin 0 -> 233 bytes 96 files changed, 124 insertions(+) create mode 100644 tests/ECMInstallIconsTest/128-devices-drive-removable-media-usb-pendrive.png create mode 100644 tests/ECMInstallIconsTest/128-emblems-emblem-mounted.png create mode 100644 tests/ECMInstallIconsTest/128-places-home.mng create mode 100644 tests/ECMInstallIconsTest/16-actions-badext.txt create mode 100644 tests/ECMInstallIconsTest/16-actions-computer.png create mode 100644 tests/ECMInstallIconsTest/16-animations-loading.mng create mode 100644 tests/ECMInstallIconsTest/16-apps-cmake.png create mode 100644 tests/ECMInstallIconsTest/16-categories-system-help.mng create mode 100644 tests/ECMInstallIconsTest/16-emotes-face-smile.png create mode 100644 tests/ECMInstallIconsTest/16-intl-something.png create mode 100644 tests/ECMInstallIconsTest/16-status-user-online.png create mode 100644 tests/ECMInstallIconsTest/CMakeLists.txt create mode 100644 tests/ECMInstallIconsTest/aa-actions-badsize.png create mode 100644 tests/ECMInstallIconsTest/badlynamedfile.png create mode 100644 tests/ECMInstallIconsTest/check_tree.cmake.in create mode 100644 tests/ECMInstallIconsTest/expected-tree/badly-named-files-test/hicolor/16x16/actions/badext.txt create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/emblems/l10n/en_US/emblem-mounted.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/places/l10n/en_US/home.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/actions/l10n/en_US/computer.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/animations/l10n/en_US/loading.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/apps/l10n/en_US/cmake.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/categories/l10n/en_US/system-help.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/emotes/l10n/en_US/face-smile.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/intl/l10n/en_US/something.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/status/l10n/en_US/user-online.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/scalable/mimetypes/l10n/en_US/fonts-package.svgz create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/devices/drive-removable-media-usb-pendrive.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/emblems/emblem-mounted.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/places/home.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/actions/computer.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/animations/loading.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/apps/cmake.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/categories/system-help.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/emotes/face-smile.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/intl/something.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/status/user-online.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/scalable/mimetypes/fonts-package.svgz create mode 100644 tests/ECMInstallIconsTest/expected-tree/single-file-test/hicolor/16x16/actions/computer.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/emblems/l10n/en_US/emblem-mounted.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/places/l10n/en_US/home.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/actions/l10n/en_US/computer.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/animations/l10n/en_US/loading.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/apps/l10n/en_US/cmake.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/categories/l10n/en_US/system-help.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/emotes/l10n/en_US/face-smile.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/intl/l10n/en_US/something.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/status/l10n/en_US/user-online.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/scalable/mimetypes/l10n/en_US/fonts-package.svgz create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/devices/drive-removable-media-usb-pendrive.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/emblems/emblem-mounted.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/places/home.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/actions/computer.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/animations/loading.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/apps/cmake.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/categories/system-help.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/emotes/face-smile.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/intl/something.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/status/user-online.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/scalable/mimetypes/fonts-package.svgz create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/emblem-mounted.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/l10n/en_US/emblem-mounted.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/devices/drive-removable-media-usb-pendrive.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/home.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/l10n/en_US/home.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/computer.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/l10n/en_US/computer.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/animations/loading.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/apps/cmake.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/emotes/face-smile.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/intl/something.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/status/user-online.png create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/fonts-package.svgz create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/l10n/en_US/fonts-package.svgz create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/l10n/en_US/system-help.mng create mode 100644 tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/system-help.mng create mode 100644 tests/ECMInstallIconsTest/sc-mimetypes-fonts-package.svgz create mode 100644 tests/ECMInstallIconsTest/v1-syntax-l10n/CMakeLists.txt create mode 100644 tests/ECMInstallIconsTest/v1-syntax-l10n/cr128-emblems-emblem-mounted.png create mode 100644 tests/ECMInstallIconsTest/v1-syntax-l10n/hi128-places-home.mng create mode 100644 tests/ECMInstallIconsTest/v1-syntax-l10n/hi16-actions-computer.png create mode 100644 tests/ECMInstallIconsTest/v1-syntax-l10n/losc-mimetypes-fonts-package.svgz create mode 100644 tests/ECMInstallIconsTest/v1-syntax-l10n/ox16-categories-system-help.mng create mode 100644 tests/ECMInstallIconsTest/v1-syntax/CMakeLists.txt create mode 100644 tests/ECMInstallIconsTest/v1-syntax/cr128-emblems-emblem-mounted.png create mode 100644 tests/ECMInstallIconsTest/v1-syntax/hi128-devices-drive-removable-media-usb-pendrive.png create mode 100644 tests/ECMInstallIconsTest/v1-syntax/hi128-places-home.mng create mode 100644 tests/ECMInstallIconsTest/v1-syntax/hi16-actions-computer.png create mode 100644 tests/ECMInstallIconsTest/v1-syntax/hi16-animations-loading.mng create mode 100644 tests/ECMInstallIconsTest/v1-syntax/hi16-apps-cmake.png create mode 100644 tests/ECMInstallIconsTest/v1-syntax/hi16-emotes-face-smile.png create mode 100644 tests/ECMInstallIconsTest/v1-syntax/hi16-intl-something.png create mode 100644 tests/ECMInstallIconsTest/v1-syntax/hi16-status-user-online.png create mode 100644 tests/ECMInstallIconsTest/v1-syntax/losc-mimetypes-fonts-package.svgz create mode 100644 tests/ECMInstallIconsTest/v1-syntax/ox16-categories-system-help.mng (limited to 'tests/ECMInstallIconsTest') 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/128-devices-drive-removable-media-usb-pendrive.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/128-emblems-emblem-mounted.png differ diff --git a/tests/ECMInstallIconsTest/128-places-home.mng b/tests/ECMInstallIconsTest/128-places-home.mng new file mode 100644 index 00000000..c81faca3 Binary files /dev/null and b/tests/ECMInstallIconsTest/128-places-home.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/16-actions-computer.png differ diff --git a/tests/ECMInstallIconsTest/16-animations-loading.mng b/tests/ECMInstallIconsTest/16-animations-loading.mng new file mode 100644 index 00000000..ed9a1181 Binary files /dev/null and b/tests/ECMInstallIconsTest/16-animations-loading.mng differ diff --git a/tests/ECMInstallIconsTest/16-apps-cmake.png b/tests/ECMInstallIconsTest/16-apps-cmake.png new file mode 100644 index 00000000..ed9a1181 Binary files /dev/null and b/tests/ECMInstallIconsTest/16-apps-cmake.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/16-categories-system-help.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/16-emotes-face-smile.png differ diff --git a/tests/ECMInstallIconsTest/16-intl-something.png b/tests/ECMInstallIconsTest/16-intl-something.png new file mode 100644 index 00000000..c60150f8 Binary files /dev/null and b/tests/ECMInstallIconsTest/16-intl-something.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/16-status-user-online.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/aa-actions-badsize.png differ diff --git a/tests/ECMInstallIconsTest/badlynamedfile.png b/tests/ECMInstallIconsTest/badlynamedfile.png new file mode 100644 index 00000000..c60150f8 Binary files /dev/null and b/tests/ECMInstallIconsTest/badlynamedfile.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/emblems/l10n/en_US/emblem-mounted.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/128x128/places/l10n/en_US/home.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/actions/l10n/en_US/computer.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/animations/l10n/en_US/loading.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/apps/l10n/en_US/cmake.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/categories/l10n/en_US/system-help.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/emotes/l10n/en_US/face-smile.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/intl/l10n/en_US/something.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/16x16/status/l10n/en_US/user-online.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/lang-test/hicolor/scalable/mimetypes/l10n/en_US/fonts-package.svgz 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/devices/drive-removable-media-usb-pendrive.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/emblems/emblem-mounted.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/128x128/places/home.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/actions/computer.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/animations/loading.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/apps/cmake.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/categories/system-help.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/emotes/face-smile.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/intl/something.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/16x16/status/user-online.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/multi-file-test/hicolor/scalable/mimetypes/fonts-package.svgz 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/single-file-test/hicolor/16x16/actions/computer.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/devices/l10n/en_US/drive-removable-media-usb-pendrive.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/emblems/l10n/en_US/emblem-mounted.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/128x128/places/l10n/en_US/home.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/actions/l10n/en_US/computer.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/animations/l10n/en_US/loading.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/apps/l10n/en_US/cmake.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/categories/l10n/en_US/system-help.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/emotes/l10n/en_US/face-smile.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/intl/l10n/en_US/something.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/16x16/status/l10n/en_US/user-online.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-lang-test/oxygen/scalable/mimetypes/l10n/en_US/fonts-package.svgz 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/devices/drive-removable-media-usb-pendrive.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/emblems/emblem-mounted.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/128x128/places/home.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/actions/computer.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/animations/loading.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/apps/cmake.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/categories/system-help.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/emotes/face-smile.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/intl/something.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/16x16/status/user-online.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/themed-test/theme-name-2/scalable/mimetypes/fonts-package.svgz 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/emblem-mounted.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/crystalsvg/128x128/emblems/l10n/en_US/emblem-mounted.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/devices/drive-removable-media-usb-pendrive.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/home.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/128x128/places/l10n/en_US/home.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/computer.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/actions/l10n/en_US/computer.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/animations/loading.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/apps/cmake.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/emotes/face-smile.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/intl/something.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/hicolor/16x16/status/user-online.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/fonts-package.svgz 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/locolor/scalable/mimetypes/l10n/en_US/fonts-package.svgz 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/l10n/en_US/system-help.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/expected-tree/v1-icons/oxygen/16x16/categories/system-help.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/sc-mimetypes-fonts-package.svgz 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax-l10n/cr128-emblems-emblem-mounted.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax-l10n/hi128-places-home.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax-l10n/hi16-actions-computer.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax-l10n/losc-mimetypes-fonts-package.svgz 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax-l10n/ox16-categories-system-help.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/cr128-emblems-emblem-mounted.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/hi128-devices-drive-removable-media-usb-pendrive.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/hi128-places-home.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/hi16-actions-computer.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/hi16-animations-loading.mng 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/hi16-apps-cmake.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/hi16-emotes-face-smile.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/hi16-intl-something.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/hi16-status-user-online.png 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/losc-mimetypes-fonts-package.svgz 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 Binary files /dev/null and b/tests/ECMInstallIconsTest/v1-syntax/ox16-categories-system-help.mng differ -- cgit v1.2.1