diff options
author | Joerg Hofrichter <joerg.hofrichter@ni.com> | 2020-01-17 15:22:32 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-06-10 12:01:53 -0500 |
commit | 13d26a062429adc17d94f63eed17e9d39bf8a567 (patch) | |
tree | b9d84b9281e1be1277d0c5211c4aa0454f91c974 /.ci/x4xx-devtests.yml | |
parent | 2a575bf9b5a4942f60e979161764b9e942699e1e (diff) | |
download | uhd-13d26a062429adc17d94f63eed17e9d39bf8a567.tar.gz uhd-13d26a062429adc17d94f63eed17e9d39bf8a567.tar.bz2 uhd-13d26a062429adc17d94f63eed17e9d39bf8a567.zip |
uhd: ci: Add test definition for UHD CI
Co-authored-by: Joerg Hofrichter <joerg.hofrichter@ni.com>
Co-authored-by: Cristina Fuentes <cristina.fuentes@ni.com>
Diffstat (limited to '.ci/x4xx-devtests.yml')
-rw-r--r-- | .ci/x4xx-devtests.yml | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/.ci/x4xx-devtests.yml b/.ci/x4xx-devtests.yml new file mode 100644 index 000000000..780d46ec8 --- /dev/null +++ b/.ci/x4xx-devtests.yml @@ -0,0 +1,76 @@ +# +# Copyright 2021 Ettus Research, a National Instruments Brand +# +# SPDX-License-Identifier: LGPL-3.0-or-later +# +# Description: +# +# X410-Specific Pipeline to execute the devtests (equivalent to make test_x4xx) +# on the DUT. + +# no CI triggers +trigger: none + +# no PR triggers +pr: none + +variables: + UHDForHostArtifactName: 'qemux86-64-feed' + +# pipeline triggers +resources: + pipelines: + - pipeline: 'x4xx-uhddev-oe-for-host-artifacts' + source: 'x4xx-uhddev-oe-for-host' + branch: master + trigger: + # workaround if no additional branch filter is specified + enabled: True + +pool: + demands: + - 'x4xx-devtests' + +jobs: +- job: 'devtests' + + steps: + - checkout: none + + # note: 'download' parameter must not use a variable, otherwise artifact is not found + - download: 'x4xx-uhddev-oe-for-host-artifacts' + artifact: '$(UHDForHostArtifactName)' + displayName: 'Download artifact $(UHDForHostArtifactName)' + + - script: | + cp x4xx-uhddev-oe-for-host-artifacts/$(UHDForHostArtifactName)/base-feeds.conf opkg.conf + echo -e "arch all 1\narch core2-64 6\narch qemux86_64 11" >> opkg.conf + rm -rf rootfs + opkg -f opkg.conf -o rootfs update && opkg -f opkg.conf -o rootfs install uhd uhd-examples uhd-tests + workingDirectory: $(Agent.BuildDirectory) + displayName: 'Install UHD' + + - script: | + PATH="$PATH:/usr/lib/uhd/examples" + ARGS="--args=type=x4xx --devtest-pattern=x4x0 --xml" + linux-user-chroot $PWD/rootfs /usr/bin/python3 /usr/lib/uhd/tests/devtest/run_testsuite.py --src-dir=/usr/lib/uhd/tests/devtest $ARGS + workingDirectory: $(Agent.BuildDirectory) + displayName: 'Run x4xx-devtests' + continueOnError: true + + - task: PublishTestResults@2 + inputs: + testResultsFormat: 'JUnit' + testResultsFiles: '**/TEST-*.xml' + testRunTitle: 'Devtests' + searchFolder: '$(Agent.BuildDirectory)/rootfs' + + - script: | + rm -v -f a/* + cp -v rootfs/*.log a/ + displayName: 'Prepare Logfile Artifact' + workingDirectory: $(Agent.BuildDirectory) + + - publish: '$(Agent.BuildDirectory)/a' + artifact: 'Logfiles' + displayName: 'Publish Logfiles Artifact' |