include:
  - local: 'src/gallium/drivers/llvmpipe/ci/gitlab-ci-inc.yml'

llvmpipe-piglit-rusticl:
  extends:
    - .llvmpipe-piglit-cl
    - .llvmpipe-rusticl-rules
  needs:
    - debian-testing
    - debian/x86_64_test-gl
  variables:
    DEQP_SUITE: llvmpipe-rusticl
    DEQP_RUNNER_OPTIONS: "--timeout 120.0"
    GPU_VERSION: llvmpipe-rusticl

llvmpipe-traces:
  extends:
    - .test-gl
    - .piglit-traces-test
    - .llvmpipe-test
  variables:
    EGL_PLATFORM: "surfaceless"
    PIGLIT_TRACES_FILE: traces-llvmpipe.yml
    PIGLIT_REPLAY_DEVICE_NAME: "gl-vmware-llvmpipe"
    PIGLIT_RESULTS: "llvmpipe-replay"

llvmpipe:
  variables:
    DEQP_SUITE: llvmpipe
    XVFB_SCRIPT: "install/deqp-runner.sh"
    DEQP_FRACTION: 4
  extends: .llvmpipe-deqp-test
  script: |
    . "$SCRIPTS_DIR"/setup-test-env.sh
    section_start weston "weston: prepare"
    LD_LIBRARY_PATH="$PWD/install" weston -Bheadless-backend.so -Swayland-0 --idle-time=0 &
    section_end weston
    LD_LIBRARY_PATH="$PWD/install" WAYLAND_DISPLAY=wayland-0 xvfb-run --server-args='-noreset' bash -c ". $SCRIPTS_DIR/setup-test-env.sh && ${XVFB_SCRIPT}"

llvmpipe-full:
  extends:
    - llvmpipe
    - .llvmpipe-manual-rules
  timeout: 1h  # base runtime = 40m
  variables:
    DEQP_FRACTION: 1

llvmpipe-deqp-asan:
  variables:
    DEQP_SUITE: llvmpipe-asan
    GPU_VERSION: llvmpipe-asan
    DEQP_FRACTION: 10
    # Don't use threads inside llvmpipe, we've already got all cores
    # busy at the deqp-runner level, and we don't want to overload fd.o
    # shared runners
    LP_NUM_THREADS: 0
  extends: .llvmpipe-deqp-test
  needs:
    - debian/x86_64_test-gl
    - debian-testing-asan
