---
.test_parsec_template: &test_parsec
  extends: .test_script_template
  needs: [build_parsec]
  dependencies:
    - build_parsec
  artifacts:
    name: test_parsec
    expire_in: 48 hours
    paths:
      - build_parsec
      - chameleon_parsec_*.log
      - chameleon_parsec_*.lcov
      - bis_chameleon_parsec_*.lcov
    reports:
      junit: report.xml

.test_parsec_template_master: &test_parsec_master
  extends:
    - .test_parsec_template
    - .only-master

.test_parsec_template_branches: &test_parsec_branches
  extends:
    - .test_parsec_template
    - .only-branches

test_parsec_shm_s:
  <<: *test_parsec_master
  variables:
    VERSION: parsec
    CATEGORY: shm
    PRECISION: s
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

test_parsec_shm_d:
  <<: *test_parsec_master
  variables:
    VERSION: parsec
    CATEGORY: shm
    PRECISION: d
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

test_parsec_shm_c:
  <<: *test_parsec_branches
  variables:
    VERSION: parsec
    CATEGORY: shm
    PRECISION: c
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

test_parsec_shm_z:
  <<: *test_parsec_master
  variables:
    VERSION: parsec
    CATEGORY: shm
    PRECISION: z
    TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

# test_parsec_mpi_s:
#   <<: *test_parsec_branches
#   variables:
#     VERSION: parsec
#     CATEGORY: mpi
#     PRECISION: s
#     TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

# test_parsec_mpi_d:
#   <<: *test_parsec_master
#   variables:
#     VERSION: parsec
#     CATEGORY: mpi
#     PRECISION: d
#     TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

# test_parsec_mpi_c:
#   <<: *test_parsec_master
#   variables:
#     VERSION: parsec
#     CATEGORY: mpi
#     PRECISION: c
#     TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""

# test_parsec_mpi_z:
#   <<: *test_parsec_master
#   variables:
#     VERSION: parsec
#     CATEGORY: mpi
#     PRECISION: z
#     TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""
