From b02aac922797f9dbaaf35de54de61a1167984e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Tue, 13 May 2014 15:52:39 +0200 Subject: More complete testing of ECMPoQmTools - Test calling ecm_process_po_files_as_qm() without INSTALL_DESTINATION argument - Test calling ecm_install_po_files_as_qm() with CMAKE_INSTALL_LOCALEDIR set and with LOCALE_INSTALL_DIR set REVIEW: 118114 --- tests/ECMPoQmToolsTest/check_tree.cmake.in | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'tests/ECMPoQmToolsTest/check_tree.cmake.in') diff --git a/tests/ECMPoQmToolsTest/check_tree.cmake.in b/tests/ECMPoQmToolsTest/check_tree.cmake.in index 71cbaa8d..9f4f7c0d 100644 --- a/tests/ECMPoQmToolsTest/check_tree.cmake.in +++ b/tests/ECMPoQmToolsTest/check_tree.cmake.in @@ -24,10 +24,16 @@ endmacro() check_exists(${BINARY_DIR}/ECMQmLoader.cpp) check_strequal(QMLOADER_PATH "${BINARY_DIR}/ECMQmLoader.cpp") -set(exp_files - "share/locale/fr/LC_MESSAGES/test.qm" - "share/locale/fr/LC_MESSAGES/install-test.qm" +check_exists(${BINARY_DIR}/fr/only-process.qm) + +set(exp_files + "share/locale/fr/LC_MESSAGES/process-and-install.qm" "share/locale/es/LC_MESSAGES/install-test.qm" + "share/locale/fr/LC_MESSAGES/install-test.qm" + "custom-dir1/es/LC_MESSAGES/custom-dir1-install-test.qm" + "custom-dir1/fr/LC_MESSAGES/custom-dir1-install-test.qm" + "custom-dir2/es/LC_MESSAGES/custom-dir2-install-test.qm" + "custom-dir2/fr/LC_MESSAGES/custom-dir2-install-test.qm" ) file(GLOB_RECURSE actual_files RELATIVE "${ACTUAL_TREE}" "${ACTUAL_TREE}/*") list(SORT exp_files) @@ -51,5 +57,5 @@ if(NOT exp_files STREQUAL actual_files) endif() if (fail) - message("Test failed!") + message(FATAL_ERROR "Test failed!") endif() -- cgit v1.2.1