From 770711c40a482d1e87d75393dd3fe95d75efa379 Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Mon, 20 Jun 2022 10:47:18 -0500 Subject: ci: add devtest e320 support This commit adds devtest support for e320 via tftp. The e320 has a hardware incompatibility with sdmuxes that we use for the n3xx devices, which makes them unreliable. Instead this loads a small Linux OS into the e320 system memory and reimages the sd card from there. Signed-off-by: Steven Koo --- .ci/templates/job-uhd-devtest.yml | 41 +++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) (limited to '.ci/templates/job-uhd-devtest.yml') diff --git a/.ci/templates/job-uhd-devtest.yml b/.ci/templates/job-uhd-devtest.yml index 2b284c7ab..3e095c5f3 100644 --- a/.ci/templates/job-uhd-devtest.yml +++ b/.ci/templates/job-uhd-devtest.yml @@ -67,18 +67,30 @@ jobs: cleanDestinationFolder: true - download: ${{ parameters.uhdArtifactSource }} - artifact: $(devType)-images + artifact: n3xx-images # Only sync the bz2 sdimg since the bmap # is incompatible with mender - patterns: '**/*.bz2' + patterns: | + **/*.bz2 + fitImage-manufacturing displayName: Download $(devType)-images artifact condition: and(succeeded(), eq(variables.devType, 'n3xx')) + - download: ${{ parameters.uhdArtifactSource }} + artifact: e320-images + # Only sync the bz2 sdimg since the bmap + # is incompatible with mender + patterns: | + **/*.bz2 + fitImage-manufacturing + displayName: Download $(devType)-images artifact + condition: and(succeeded(), eq(variables.devModel, 'e320')) + - script: | cd $(Build.BinariesDirectory)/uhddev/build mkdir -p fpga_images rm -rf fpga_images/* - python3 utils/uhd_images_downloader.py -t $(devModel) -i fpga_images \ + python3 utils/uhd_images_downloader.py -t $(devModel)_fpga -i fpga_images \ -b $(sdr-fileserver) if [ "$(devType)" = "b200" ]; then python3 utils/uhd_images_downloader.py -t b2xx_common -i fpga_images \ @@ -93,7 +105,7 @@ jobs: export LD_LIBRARY_PATH=$(Build.BinariesDirectory)/uhddev/build/lib:$LD_LIBRARY_PATH export UHD_IMAGES_DIR=$(Build.BinariesDirectory)/uhddev/build/fpga_images python3 ${{ parameters.uhdSrcDir }}/.ci/utils/mutex_hardware.py \ - --sdimage $(devType),$(devModel),$(uhd_artifact_directory)/$(devType)-images/$(devSDImage),${{ parameters.uhdSrcDir }}/$(devLabgridConfig),$(devHostname) \ + --sdimage_sdmux $(devType),$(devModel),$(uhd_artifact_directory)/$(devType)-images/$(devSDImage),${{ parameters.uhdSrcDir }}/$(devLabgridConfig),$(devHostname) \ --fpgas $(devFpga) \ --sfp_addrs $(sfpAddrs) \ ${{ parameters.redisHost }} $(devName) \ @@ -107,6 +119,27 @@ jobs: condition: and(succeeded(), eq(variables.devType, 'n3xx'), eq(variables.devBus, 'ip')) displayName: Run n3xx devtest on $(devName) + - script: | + mkdir -p $(Common.TestResultsDirectory)/devtest + cd $(Common.TestResultsDirectory)/devtest + export PATH=$(Build.BinariesDirectory)/uhddev/build/utils:$(Build.BinariesDirectory)/uhddev/build/examples:$PATH + export LD_LIBRARY_PATH=$(Build.BinariesDirectory)/uhddev/build/lib:$LD_LIBRARY_PATH + export UHD_IMAGES_DIR=$(Build.BinariesDirectory)/uhddev/build/fpga_images + python3 ${{ parameters.uhdSrcDir }}/.ci/utils/mutex_hardware.py \ + --sdimage_tftp $(devType),$(devModel),$(uhd_artifact_directory)/e320-images/$(devSDImage),$(uhd_artifact_directory)/e320-images/$(devInitramfsImage),${{ parameters.uhdSrcDir }}/$(devLabgridConfig) \ + --fpgas $(devFpga) \ + --sfp_addrs $(sfpAddrs) \ + ${{ parameters.redisHost }} $(devName) \ + "$(Build.BinariesDirectory)/uhddev/build/utils/uhd_usrp_probe --args addr=$(devAddr)" \ + "python3 ${{ parameters.uhdSrcDir }}/host/tests/devtest/run_testsuite.py \ + --src-dir ${{ parameters.uhdSrcDir }}/host/tests/devtest \ + --devtest-pattern $(devtestPattern) --args addr=$(devAddr),type=$(devType) \ + --build-type Release --build-dir $(Build.BinariesDirectory)/uhddev/build \ + --python-interp python3 --xml" + continueOnError: true + condition: and(succeeded(), eq(variables.devModel, 'e320'), eq(variables.devBus, 'ip')) + displayName: Run e320 devtest on $(devName) + - script: | mkdir -p $(Common.TestResultsDirectory)/devtest cd $(Common.TestResultsDirectory)/devtest -- cgit v1.2.3