Skip to content

Commit

Permalink
Call search component directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Sep 4, 2023
1 parent 889c13d commit 79887f0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion driver/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@

from .aliases import ALIASES, PORTFOLIOS
from .arguments import EXAMPLES
from .call import check_call
from . import limits
from . import returncodes
from .run_components import get_executable, REL_SEARCH_PATH
from .util import REPO_ROOT_DIR, find_domain_filename


Expand Down Expand Up @@ -88,13 +90,20 @@ def _convert_to_standalone_config(config):
return config


def _run_search(config):
check_call(
"search",
[get_executable("release", REL_SEARCH_PATH)] + list(config),
stdin="output.sas")


def test_portfolio_configs():
all_configs = set()
for portfolio in PORTFOLIOS.values():
configs = _get_portfolio_configs(Path(portfolio))
all_configs |= set(tuple(_convert_to_standalone_config(config)) for config in configs)
for config in all_configs:
run_driver(["output.sas"] + list(config))
_run_search(config)


@pytest.mark.skipif(not limits.can_set_time_limit(), reason="Cannot set time limits on this system")
Expand Down

0 comments on commit 79887f0

Please sign in to comment.