Skip to content
Snippets Groups Projects
Forked from ogs / ogs
Source project has a limited visibility.
  • Lars Bilke's avatar
    12329ab9
    [CTest] Setup Python dependencies for benchmarks. · 12329ab9
    Lars Bilke authored and Dmitri Naumov's avatar Dmitri Naumov committed
    When a benchmark uses Python (REQUIREMENTS OGS_USE_PYTHON) and
    there is a requirements.txt file in benchmarks project file
    directory a Python virtual environment is created and dependencies
    are installed during benchmark execution via ctest (inside the
    build directory).
    
    The PYTHONPATH environment variable of the benchmark test is set
    to the virtual environment to mimic virtual environment activation.
    
    Normally you would use
    
    source .venv/bin/activate
    
    but this is not possible when executing the benchmarks via ctest.
    12329ab9
    History
    [CTest] Setup Python dependencies for benchmarks.
    Lars Bilke authored and Dmitri Naumov's avatar Dmitri Naumov committed
    When a benchmark uses Python (REQUIREMENTS OGS_USE_PYTHON) and
    there is a requirements.txt file in benchmarks project file
    directory a Python virtual environment is created and dependencies
    are installed during benchmark execution via ctest (inside the
    build directory).
    
    The PYTHONPATH environment variable of the benchmark test is set
    to the virtual environment to mimic virtual environment activation.
    
    Normally you would use
    
    source .venv/bin/activate
    
    but this is not possible when executing the benchmarks via ctest.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.