From 3800322e04dcda9bf69ed591ae93f7294d13e827 Mon Sep 17 00:00:00 2001
From: Chase Qi <chase.qi@linaro.org>
Date: Fri, 25 Feb 2022 13:49:05 +0800
Subject: [PATCH] ci: enable perf testing on linux builds

Signed-off-by: Chase Qi <chase.qi@linaro.org>
---
 .gitlab-ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7df343dc..6336cf96 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -208,6 +208,46 @@ lava-zephyr-96b-nitrogen-tests:
     CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/nitrogen-test.yaml"
     CI_REPORT_JOB_NAME: lava-report
 
+lava-qemu-x86-perf:
+  needs: [linux-qemu-x86]
+  stage: test
+  extends: .lava-test
+  variables:
+    MACHINE: qemux86
+    CI_BUILD_JOB_NAME: linux-qemu-x86
+    CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/qemu-x86-perf.yaml"
+    CI_REPORT_JOB_NAME: lava-report
+
+lava-qemu-x86_64-perf:
+  needs: [linux-qemu-x86_64]
+  stage: test
+  extends: .lava-test
+  variables:
+    MACHINE: qemux86-64
+    CI_BUILD_JOB_NAME: linux-qemu-x86_64
+    CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/qemu-x86_64-perf.yaml"
+    CI_REPORT_JOB_NAME: lava-report
+
+lava-raspberrypi4-64-perf:
+  needs: [linux-raspberrypi4-64]
+  stage: test
+  extends: .lava-test
+  variables:
+    MACHINE: raspberrypi4-64
+    CI_BUILD_JOB_NAME: linux-raspberrypi4-64
+    CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/raspberrypi4-64-perf.yaml"
+    CI_REPORT_JOB_NAME: lava-report
+
+lava-seco-intel-b68-perf:
+  needs: [linux-seco-intel-b68]
+  stage: test
+  extends: .lava-test
+  variables:
+    MACHINE: seco-intel-b68
+    CI_BUILD_JOB_NAME: linux-seco-intel-b68
+    CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/seco-intel-b68-perf.yaml"
+    CI_REPORT_JOB_NAME: lava-report
+
 lava-zephyr-qemu-cortex-m3:
   needs: [zephyr-qemu-cortex-m3]
   stage: test
@@ -238,6 +278,10 @@ lava-report:
     - lava-qemu-x86_64-ltp
     - lava-raspberrypi4-64-ltp
     - lava-seco-intel-b68-ltp
+    - lava-qemu-x86-perf
+    - lava-qemu-x86_64-perf
+    - lava-raspberrypi4-64-perf
+    - lava-seco-intel-b68-perf
     - lava-zephyr-96b-nitrogen-tests
     - lava-zephyr-qemu-cortex-m3
     - lava-zephyr-qemu-x86
-- 
GitLab