---
.test_openmp_template: &test_openmp
  extends: .test_script_template
  needs: [build_openmp]
  dependencies:
    - build_openmp
  artifacts:
    name: test_openmp
    expire_in: 48 hours
    paths:
      - build_openmp
      - chameleon_openmp_*.log
      - chameleon_openmp_*.lcov
      - bis_chameleon_openmp_*.lcov
    reports:
      junit: report.xml

.test_openmp_template_master: &test_openmp_master
  extends:
    - .test_openmp_template
    - .only-master

.test_openmp_template_branches: &test_openmp_branches
  extends:
    - .test_openmp_template
    - .only-branches

test_openmp_shm_s:
  <<: *test_openmp_master
  variables:
    VERSION: openmp
    CATEGORY: shm
    PRECISION: s
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

test_openmp_shm_d:
  <<: *test_openmp_master
  variables:
    VERSION: openmp
    CATEGORY: shm
    PRECISION: d
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

test_openmp_shm_c:
  <<: *test_openmp_master
  variables:
    VERSION: openmp
    CATEGORY: shm
    PRECISION: c
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

test_openmp_shm_z:
  <<: *test_openmp_branches
  variables:
    VERSION: openmp
    CATEGORY: shm
    PRECISION: z
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""
