tests: Skip hotdoc test if hotdoc is not installed
This commit is contained in:
parent
afffb9e57d
commit
2a586f00b7
|
@ -1112,12 +1112,24 @@ def detect_system_compiler(options):
|
|||
|
||||
def print_tool_versions():
|
||||
tools = [
|
||||
{
|
||||
'tool': 'ninja',
|
||||
'args': ['--version'],
|
||||
'regex': re.compile(r'^([0-9]+(\.[0-9]+)*(-[a-z0-9]+)?)$'),
|
||||
'match_group': 1,
|
||||
},
|
||||
{
|
||||
'tool': 'cmake',
|
||||
'args': ['--version'],
|
||||
'regex': re.compile(r'^cmake version ([0-9]+(\.[0-9]+)*(-[a-z0-9]+)?)$'),
|
||||
'match_group': 1,
|
||||
},
|
||||
{
|
||||
'tool': 'hotdoc',
|
||||
'args': ['--version'],
|
||||
'regex': re.compile(r'^([0-9]+(\.[0-9]+)*(-[a-z0-9]+)?)$'),
|
||||
'match_group': 1,
|
||||
},
|
||||
]
|
||||
|
||||
def get_version(t: dict) -> str:
|
||||
|
|
|
@ -314,5 +314,8 @@
|
|||
{"type": "file", "file": "usr/share/doc/foobar/html/assets/fonts/dumped.trie"},
|
||||
{"type": "file", "file": "usr/share/doc/foobar/html/assets/images/home.svg"},
|
||||
{"type": "file", "file": "usr/share/doc/foobar/html/assets/images/dumped.trie"}
|
||||
]
|
||||
],
|
||||
"tools": {
|
||||
"hotdoc": ">=0.1.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue