Skip to content

Commit

Permalink
archive unittest info
Browse files Browse the repository at this point in the history
Signed-off-by: pettershao-ragilenetworks <[email protected]>
  • Loading branch information
pettershao-ragilenetworks authored and sdk committed Nov 3, 2022
1 parent a979f3b commit 8630dad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ parameters:
- name: syslog_artifact_name
type: string

- name: gcov_unittest_artifact_name
type: string

- name: run_unit_test
type: boolean
default: false
Expand Down Expand Up @@ -189,6 +192,10 @@ jobs:
- publish: $(System.DefaultWorkingDirectory)/
artifact: ${{ parameters.artifact_name }}
displayName: "Archive sonic sairedis debian packages"
- publish: $(Build.ArtifactStagingDirectory)/gcov_unittest_tmp
artifact: ${{ parameters.gcov_unittest_artifact_name }}
displayName: "Publish gcov unittest output"
condition: eq('${{ parameters.archive_gcov }}', true)
# - ${{ if eq(parameters.archive_gcov, true) }}:
# - script: |
# set -ex
Expand Down
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ stages:
swss_common_artifact_name: sonic-swss-common
artifact_name: sonic-sairedis
syslog_artifact_name: sonic-sairedis.syslog
gcov_unittest_artifact_name: gcov_unitest.info
run_unit_test: true
archive_gcov: true
debian_version: ${{ parameters.debian_version }}
Expand Down
5 changes: 5 additions & 0 deletions gcov_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ lcov_get_info()

echo "ls -lh unittest_total.info"
ls -lh

cp unittest_total.info output_dir
echo "ls -lh output_dir"
ls -lh output_dir

# cp unittest_total.info ${output_dir}

# sed -i "s#common_work/#$1/common_work/#" coverage.xml
Expand Down

0 comments on commit 8630dad

Please sign in to comment.