Skip to content
Snippets Groups Projects
Commit 0d65c784 authored by Craig Tiller's avatar Craig Tiller
Browse files

Filter out ssl tests in the sans: they dont work yet

parent 92eb29a7
No related branches found
No related tags found
No related merge requests found
...@@ -29,13 +29,23 @@ class ValgrindConfig(object): ...@@ -29,13 +29,23 @@ class ValgrindConfig(object):
return ['valgrind', binary] return ['valgrind', binary]
# SanConfig: compile with CONFIG=config, filter out incompatible binaries
class SanConfig(object):
def __init__(self, config):
self.build_config = config
def run_command(self, binary):
if '_ssl_' in binary:
return None
return [binary]
# different configurations we can run under # different configurations we can run under
_CONFIGS = { _CONFIGS = {
'dbg': SimpleConfig('dbg'), 'dbg': SimpleConfig('dbg'),
'opt': SimpleConfig('opt'), 'opt': SimpleConfig('opt'),
'tsan': SimpleConfig('tsan'), 'tsan': SanConfig('tsan'),
'msan': SimpleConfig('msan'), 'msan': SanConfig('msan'),
'asan': SimpleConfig('asan'), 'asan': SanConfig('asan'),
'gcov': SimpleConfig('gcov'), 'gcov': SimpleConfig('gcov'),
'valgrind': ValgrindConfig('dbg'), 'valgrind': ValgrindConfig('dbg'),
} }
...@@ -81,14 +91,15 @@ def _build_and_run(check_cancelled): ...@@ -81,14 +91,15 @@ def _build_and_run(check_cancelled):
return 1 return 1
# run all the tests # run all the tests
if not jobset.run(( if not jobset.run(itertools.ifilter(
lambda x: x is not None, (
config.run_command(x) config.run_command(x)
for config in run_configs for config in run_configs
for filt in filters for filt in filters
for x in itertools.chain.from_iterable(itertools.repeat( for x in itertools.chain.from_iterable(itertools.repeat(
glob.glob('bins/%s/%s_test' % ( glob.glob('bins/%s/%s_test' % (
config.build_config, filt)), config.build_config, filt)),
runs_per_test))), check_cancelled): runs_per_test)))), check_cancelled):
return 2 return 2
return 0 return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment