aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/uhd-python-hardware-tests.yml
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2021-02-22 14:44:18 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-08 16:18:11 -0600
commita0fcdec7d5f344a5fd7873585a621bef33c25b85 (patch)
tree733129f79a1d36569f6b6a7d067b408690fac834 /.ci/uhd-python-hardware-tests.yml
parent909b434e1ee6eb3797f5c070deaadfef34f11853 (diff)
downloaduhd-a0fcdec7d5f344a5fd7873585a621bef33c25b85.tar.gz
uhd-a0fcdec7d5f344a5fd7873585a621bef33c25b85.tar.bz2
uhd-a0fcdec7d5f344a5fd7873585a621bef33c25b85.zip
ci: Hardware pytests / devtests in AzDO for n310
This commit adds support for running devtests and pytests in Azure Pipelines. Devices are intentionally matrixed for adding more in the future. devtest is turned off by default for now, but can be enabled in the future. Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/uhd-python-hardware-tests.yml')
-rw-r--r--.ci/uhd-python-hardware-tests.yml46
1 files changed, 37 insertions, 9 deletions
diff --git a/.ci/uhd-python-hardware-tests.yml b/.ci/uhd-python-hardware-tests.yml
index 7c55f36c3..33e9f712f 100644
--- a/.ci/uhd-python-hardware-tests.yml
+++ b/.ci/uhd-python-hardware-tests.yml
@@ -4,12 +4,40 @@ trigger: none
# no PR triggers
pr: none
-pool:
- name: de-dre-lab
- demands:
- - 'uhd_oss_ats'
-
-steps:
-- checkout: none
-- script: printenv
- displayName: Print Environment
+parameters:
+- name: run_pebbles_n310_0
+ type: boolean
+ default: true
+- name: runDevTest
+ type: boolean
+ default: false
+- name: runPyTest
+ type: boolean
+ default: true
+
+resources:
+ repositories:
+ - repository: ettus-rts
+ type: github
+ endpoint: EttusResearch
+ name: EttusResearch/ettus-rts
+
+jobs:
+- template: templates/job-uhd-hardware-tests.yml
+ parameters:
+ runDevTest: ${{ parameters.runDevTest }}
+ runPyTest: ${{ parameters.runPyTest }}
+ dutMatrix:
+ pebbles-n310-0:
+ devType: 'n3xx'
+ devModel: 'n310'
+ devName: 'pebbles-n310-0'
+ devSerial: '311FE02'
+ devBus: ip
+ devAddr: '192.168.40.17'
+ devMgmtAddr: 'ni-n3xx-311FE02'
+ devtestPattern: 'n3x0'
+ pytestDUT: 'n310-0'
+ pytestAtsConfig: 'uhd_oss_ats'
+ pipelineAgent: pebbles-agent-1
+ deviceEnabled: ${{ parameters.run_pebbles_n310_0 }}