---
.test_quark_template: &test_quark
  extends: .test_script_template
  needs: [build_quark]
  dependencies:
    - build_quark
  artifacts:
    name: test_quark
    expire_in: 48 hours
    paths:
      - build_quark
      - chameleon_quark_*.log
      - chameleon_quark_*.lcov
      - bis_chameleon_quark_*.lcov
    reports:
      junit: report.xml

.test_quark_template_master: &test_quark_master
  extends:
    - .test_quark_template
    - .only-master

.test_quark_template_branches: &test_quark_branches
  extends:
    - .test_quark_template
    - .only-branches

test_quark_shm_s:
  <<: *test_quark_branches
  variables:
    VERSION: quark
    CATEGORY: shm
    PRECISION: s
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

test_quark_shm_d:
  <<: *test_quark_master
  variables:
    VERSION: quark
    CATEGORY: shm
    PRECISION: d
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

test_quark_shm_c:
  <<: *test_quark_master
  variables:
    VERSION: quark
    CATEGORY: shm
    PRECISION: c
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

test_quark_shm_z:
  <<: *test_quark_master
  variables:
    VERSION: quark
    CATEGORY: shm
    PRECISION: z
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""
