[packages/clementine] skip translation tests that are broken due unbundling them

glen glen at pld-linux.org
Sun Jan 12 13:32:36 CET 2014


commit 63e5b3633d3b7388a3a5325c2413ba654e6fef41
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 8 01:35:55 2013 +0300

    skip translation tests that are broken due unbundling them

 unbundle-po.patch | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
---
diff --git a/unbundle-po.patch b/unbundle-po.patch
index 5d4858d..7bba8cd 100644
--- a/unbundle-po.patch
+++ b/unbundle-po.patch
@@ -112,3 +112,37 @@ Author: Elan Ruusamäe <glen at pld-linux.org>
 +#  file(APPEND ${_qrc} "</qresource></RCC>")
 +#  qt4_add_resources(${outfiles} ${_qrc})
  endmacro(add_po)
+--- clementine-1.1.1/tests/resources_env.h~	2013-09-08 01:29:59.000000000 +0300
++++ clementine-1.1.1/tests/resources_env.h	2013-09-08 01:30:00.886424405 +0300
+@@ -26,7 +26,7 @@
+ public:
+   void SetUp() {
+     Q_INIT_RESOURCE(data);
+-    Q_INIT_RESOURCE(translations);
++//    Q_INIT_RESOURCE(translations);
+     Q_INIT_RESOURCE(testdata);
+   }
+ };
+--- clementine-1.1.1/tests/translations_test.cpp~	2013-09-08 01:34:17.000000000 +0300
++++ clementine-1.1.1/tests/translations_test.cpp	2013-09-08 01:34:21.084475375 +0300
+@@ -23,14 +23,14 @@
+ #include "test_utils.h"
+ 
+ TEST(Translations, Basic) {
+-  ASSERT_TRUE(QFile::exists(":/translations"));
+-  ASSERT_TRUE(QFile::exists(":/translations/clementine_es.qm"));
++//  ASSERT_TRUE(QFile::exists(":/translations"));
++//  ASSERT_TRUE(QFile::exists(":/translations/clementine_es.qm"));
+ 
+   PoTranslator t;
+   t.load("clementine_es.qm", ":/translations");
+ 
+-  EXPECT_EQ(QString::fromUtf8("Colección"),
+-            t.translate("MainWindow", "Library"));
+-  EXPECT_EQ(QString::fromUtf8("Colección"),
+-            t.translate("", "Library"));
++//  EXPECT_EQ(QString::fromUtf8("Colección"),
++//            t.translate("MainWindow", "Library"));
++//  EXPECT_EQ(QString::fromUtf8("Colección"),
++//            t.translate("", "Library"));
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/clementine.git/commitdiff/63e5b3633d3b7388a3a5325c2413ba654e6fef41



More information about the pld-cvs-commit mailing list