已合并
新增kirin PreSmoke_harmony-infer-chs-cv任务 #1322
lidaoshuai创建于 9 天前
新增kirin PreSmoke_harmony-infer-chs-cv任务 #1322
已合并
共 2 个文件变更+39-0
| @@ -0,0 +1,26 @@ | |||
| 1 | +#!/bin/bash | ||
| 2 | + | ||
| 3 | +# ----------------------------------------------------------------------------------------------------------- | ||
| 4 | +# Copyright (c) 2026 Huawei Technologies Co., Ltd. | ||
| 5 | +# This program is free software, you can redistribute it and/or modify it under the terms and conditions of | ||
| 6 | +# CANN Open Software License Agreement Version 2.0 (the "License"). | ||
| 7 | +# Please refer to the License for details. You may not use this file except in compliance with the License. | ||
| 8 | +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, | ||
| 9 | +# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. | ||
| 10 | +# See LICENSE in the root of the software repository for the full text of the License. | ||
| 11 | +# -----------------------------------------------------------------------------------------------------------s. | ||
| 12 | + | ||
| 13 | +set -e | ||
| 14 | +echo "#########################打印SN号#########################" | ||
| 15 | +hdc list targets | ||
| 16 | +echo "#########################下载kirin_cann_test代码仓#########################" | ||
| 17 | +git clone https://gitcode.com/funna2000/kirin_cann_test.git | ||
| 18 | +cd kirin_cann_test/harmony-infer-chs | ||
| 19 | +cp ../entry-default-signed.hap ./ | ||
| 20 | +bash rdv_test_gitcode.sh $(hdc list targets) cv.json Kirin9030 ${repo_name} ${MERGE_ID} ${obs_path} | ||
| 21 | +echo "#########################查看用例执行结果#########################" | ||
| 22 | +cat result.txt | ||
| 23 | +echo "#########################打印SN号#########################" | ||
| 24 | +hdc list targets | ||
| 25 | +echo "#########################清空工作目录#########################" | ||
| 26 | +rm -rf ../../../ops-* | ||
| @@ -360,6 +360,19 @@ stages: | |||
| 360 | file_path: ${{ steps.process_checkout.outputs.path }}/ci/smoke-conf/smoke-A2.yaml | 360 | file_path: ${{ steps.process_checkout.outputs.path }}/ci/smoke-conf/smoke-A2.yaml |
| 361 | if: env.TARGET_BRANCH == 'master' | 361 | if: env.TARGET_BRANCH == 'master' |
| 362 | runs-on: ['self-hosted','arch=arm','smoke=204'] | 362 | runs-on: ['self-hosted','arch=arm','smoke=204'] |
| 363 | + PreSmoke_harmony-infer-chs-cv: | ||
| 364 | + name: PreSmoke_harmony-infer-chs-cv | ||
| 365 | + if: env.TARGET_BRANCH == 'master' | ||
| 366 | + runs-on: [self-hosted, arch=x64, os=ubuntu, type=chs_phone] | ||
| 367 | + steps: | ||
| 368 | + - name: Checkout | ||
| 369 | + identifier: process_checkout | ||
| 370 | + uses: checkout | ||
| 371 | + with: | ||
| 372 | + ref: ${{ atomgit.event.pull_request.merge_commit_sha }} | ||
| 373 | + token: ${{secrets.GIT_TOKEN}} | ||
| 374 | + - name: 执行 Kirin PreSmoke_harmony-infer-chs-cv 测试 | ||
| 375 | + run: bash .gitcode/scripts/kirin_smoke_chs.sh | ||
| 363 | pre: | 376 | pre: |
| 364 | - type: auto | 377 | - type: auto |
| 365 | fail-fast: false | 378 | fail-fast: false |