tests: Skip hotdoc test if hotdoc is not installed

pull/6911/head
Daniel Mensinger 5 years ago
parent afffb9e57d
commit 2a586f00b7
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 12
      run_project_tests.py
  2. 5
      test cases/frameworks/23 hotdoc/test.json

@ -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…
Cancel
Save