diff --git a/recipes/poppler-data/all/conanfile.py b/recipes/poppler-data/all/conanfile.py index 6c88591..937280e 100644 --- a/recipes/poppler-data/all/conanfile.py +++ b/recipes/poppler-data/all/conanfile.py @@ -21,13 +21,11 @@ def export_sources(self): def package_id(self): self.info.settings.clear() + self.info.clear() def layout(self): cmake_layout(self) - def package_id(self): - self.info.clear() - def source(self): get(self, **self.conan_data["sources"][self.version], destination=self.source_folder, strip_root=True) diff --git a/recipes/poppler-data/all/test_package/conanfile.py b/recipes/poppler-data/all/test_package/conanfile.py index 103ab85..af49f68 100644 --- a/recipes/poppler-data/all/test_package/conanfile.py +++ b/recipes/poppler-data/all/test_package/conanfile.py @@ -1,3 +1,5 @@ +import os.path + from conan import ConanFile @@ -5,9 +7,12 @@ class TestPackageConan(ConanFile): settings = "os", "arch", "compiler", "build_type" test_type = "explicit" - def build_requirements(self): - self.tool_requires(self.tested_reference_str) + def requirements(self): + self.requires(self.tested_reference_str) def test(self): - # @TODO: actually test - yield + resdir = self.dependencies['poppler-data'].cpp_info.resdirs[0] + for i in ["cMap", "cidToUnicode", "nameToUnicode", "unicodeMap"]: + d = os.path.join(resdir, i) + assert os.path.exists(d) + assert len(os.listdir(d)) != 0