From 2492d1c746b257518b86d2ade8f49b6b0d8f82ab Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Mon, 26 Apr 2021 11:12:24 +0200
Subject: [PATCH] Add hmat testings

---
 .gitlab-ci.yml        |  1 +
 .gitlab/build.yml     | 11 +++++++++++
 .gitlab/test_hmat.yml | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 100644 .gitlab/test_hmat.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index efa9f6a20..65fc90309 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,7 @@ include:
   - .gitlab/test_parsec.yml
   - .gitlab/test_quark.yml
   - .gitlab/test_openmp.yml
+  - .gitlab/test_hmat.yml
   - .gitlab/coverage.yml
   - .gitlab/coverity.yml
   - .gitlab/sonarqube.yml
diff --git a/.gitlab/build.yml b/.gitlab/build.yml
index 5e0fd3774..d31150683 100644
--- a/.gitlab/build.yml
+++ b/.gitlab/build.yml
@@ -74,4 +74,15 @@ build_starpu_macosx:
   script:
     - tools/build_macosx.sh
 
+build_hmat:
+  extends: .build_script_template
+  artifacts:
+    name: build_hmat
+    expire_in: 48 hours
+    paths:
+      - build-hmat
+      - chameleon_hmat.log
+  variables:
+    BUILD_OPTIONS: "-DCHAMELEON_USE_CUDA=OFF -DCHAMELEON_USE_MPI=ON -DCHAMELEON_USE_HMAT=ON"
+    VERSION: hmat
 
diff --git a/.gitlab/test_hmat.yml b/.gitlab/test_hmat.yml
new file mode 100644
index 000000000..97e2d3702
--- /dev/null
+++ b/.gitlab/test_hmat.yml
@@ -0,0 +1,34 @@
+---
+.test_hmat_template:
+  extends: .test_script_template
+  needs: [build_hmat]
+  dependencies:
+    - build_hmat
+  artifacts:
+    name: test_hmat
+    expire_in: 48 hours
+    paths:
+      - build_hmat
+      - chameleon_hmat_*.log
+      - chameleon_hmat_*.lcov
+      - bis_chameleon_hmat_*.lcov
+    reports:
+      junit: report.xml
+
+.test_hmat_template_master: &test_hmat_master
+  extends:
+    - .test_hmat_template
+    - .only-master
+
+.test_hmat_template_branches: &test_hmat_branches
+  extends:
+    - .test_hmat_template
+    - .only-branches
+
+test_hmat:
+  <<: *test_hmat_branches
+  variables:
+    VERSION: hmat
+    CATEGORY: none
+    PRECISION: all
+    TESTS_RESTRICTION: "-R \"testBEM_\""
-- 
GitLab