Skip to content

Commit

Permalink
[poppler-data] Fix settings clearance and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Jul 27, 2024
1 parent 92139eb commit b8a31e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 1 addition & 3 deletions recipes/poppler-data/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 9 additions & 4 deletions recipes/poppler-data/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import os.path

from conan import ConanFile


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

0 comments on commit b8a31e3

Please sign in to comment.