-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[poppler-data] Fix settings clearance and fix tests
- Loading branch information
1 parent
92139eb
commit b8a31e3
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |