From 02152fd7a652444cd5a41709f1139ff1b3d42e8d Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Mon, 7 Feb 2022 22:46:45 -0600 Subject: ci: Enable ctest on macOS builds Signed-off-by: Steven Koo --- .ci/templates/job-uhd-build-src.yml | 2 -- .ci/templates/steps-build-uhd-make-homebrew-macos.yml | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.ci/templates/job-uhd-build-src.yml b/.ci/templates/job-uhd-build-src.yml index 549fe61d0..c43e90a1a 100644 --- a/.ci/templates/job-uhd-build-src.yml +++ b/.ci/templates/job-uhd-build-src.yml @@ -135,7 +135,6 @@ jobs: sourceFolder: $(Build.BinariesDirectory)/uhddev/ contents: build/Testing/** targetFolder: $(Common.TestResultsDirectory) - condition: and(succeeded(), ne('${{ parameters.toolset }}', 'make_homebrew_macos')) displayName: Copy ${{ parameters.toolset }} ctest results - task: PublishTestResults@2 @@ -144,5 +143,4 @@ jobs: testResultsFiles: $(Common.TestResultsDirectory)/build/Testing/**/Test.xml failTaskOnFailedTests: true testRunTitle: uhd ctest $(buildOSName)-${{ parameters.toolset }} - condition: and(succeeded(), ne('${{ parameters.toolset }}', 'make_homebrew_macos')) displayName: Publish $(buildOSName)-${{ parameters.toolset }} ctest results diff --git a/.ci/templates/steps-build-uhd-make-homebrew-macos.yml b/.ci/templates/steps-build-uhd-make-homebrew-macos.yml index 9ba7bfe52..6feaed48b 100644 --- a/.ci/templates/steps-build-uhd-make-homebrew-macos.yml +++ b/.ci/templates/steps-build-uhd-make-homebrew-macos.yml @@ -24,6 +24,12 @@ steps: make -j$(sysctl -n hw.ncpu) -k displayName: make homebrew macOS UHD +- script: | + cd ${{ parameters.uhdBuildDir }} + ctest --no-compress-output --output-on-failure -T test + continueOnError: true + displayName: ctest make homebrew macOS UHD + - script: | rm -rf ${{ parameters.uhdBuildDir }}/pyenv displayName: Delete venv -- cgit v1.2.3