From fb0daf721cdc8e4c5af4f1630b95281cef7da9f8 Mon Sep 17 00:00:00 2001 From: Mohamed Omar Asaker Date: Fri, 19 Jan 2024 19:31:16 +0000 Subject: [PATCH] ci/scmi: add scmi-test job Add `scmi-test` job, which runs SCMI compliance suite in CI pipelines. The job is included in deployment and daily pipelines. Signed-off-by: Mohamed Omar Asaker Change-Id: I7275a17b3c8420571cbc4102268d937b3c10b823 --- .gitlab/pipelines/daily-pipeline.yml | 7 +++++++ .gitlab/pipelines/deployment-pipeline.yml | 6 ++++++ .gitlab/templates/scmi-test.yml | 19 +++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 .gitlab/templates/scmi-test.yml diff --git a/.gitlab/pipelines/daily-pipeline.yml b/.gitlab/pipelines/daily-pipeline.yml index 80c40a95b..10532eb57 100644 --- a/.gitlab/pipelines/daily-pipeline.yml +++ b/.gitlab/pipelines/daily-pipeline.yml @@ -10,12 +10,14 @@ stages: - static-analysis - unit-testing - build + - scmi-test include: - local: .gitlab/templates/linting.yml - local: .gitlab/templates/static-analysis.yml - local: .gitlab/templates/unit-test.yml - local: .gitlab/templates/build-test.yml + - local: .gitlab/templates/scmi-test.yml check-lint: extends: .check-lint @@ -40,3 +42,8 @@ check-modules: build-products-all-log-levels: extends: .build-products-all-log-levels stage: build + allow_failure: true + +scmi-test: + extends: .scmi-test + stage: scmi-test diff --git a/.gitlab/pipelines/deployment-pipeline.yml b/.gitlab/pipelines/deployment-pipeline.yml index 08af3795e..8c215873d 100644 --- a/.gitlab/pipelines/deployment-pipeline.yml +++ b/.gitlab/pipelines/deployment-pipeline.yml @@ -10,12 +10,14 @@ stages: - static-analysis - unit-testing - build + - scmi-test include: - local: .gitlab/templates/linting.yml - local: .gitlab/templates/static-analysis.yml - local: .gitlab/templates/unit-test.yml - local: .gitlab/templates/build-test.yml + - local: .gitlab/templates/scmi-test.yml check-lint: extends: .check-lint @@ -44,3 +46,7 @@ check-modules: build-products: extends: .build-products stage: build + +scmi-test: + extends: .scmi-test + stage: scmi-test diff --git a/.gitlab/templates/scmi-test.yml b/.gitlab/templates/scmi-test.yml new file mode 100644 index 000000000..5edf2f2e0 --- /dev/null +++ b/.gitlab/templates/scmi-test.yml @@ -0,0 +1,19 @@ +# +# Arm SCP/MCP Software +# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# + +.scmi-test: + image: ${CI_REGISTRY_IMAGE}/scmi-tester-amd64 + tags: + - amd64 + variables: + SCP_CI_PLATFORMS: "sgm776" + GIT_SUBMODULE_STRATEGY: recursive + GIT_DEPTH: 1 + before_script: + - ln -s $(pwd) /scp + script: + - /scmi_tester_entrypoint.sh