Skip to content

Commit

Permalink
GHI #32 Fix coverage CI to run BtApi tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
doodspav committed Jul 8, 2024
1 parent 93bf280 commit 26020e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/_reusable-test-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,12 @@ jobs:
if: env.SKIP_JOB != 'true'
continue-on-error: true
env:
LABEL_REGEX: ${{ matrix.kind == 'coverage' && '^(ut)$' || '^(.*)$' }}
CTEST_SELECT: ${{ matrix.kind == 'coverage' && '--tests-regex "^(Ut|BtApi)"' || '--label-regex "^(.*)$"' }}
run: |
cd ${{ env.ROOT_PATH }}
cd patomic/build
sudo apt install tree # debug
tree .
ctest --show-only=json-v1
ctest --label-regex "${{ env.LABEL_REGEX }}" --verbose --output-junit Testing/Temporary/results.xml --build-config ${{ env.CMAKE_BUILD_TYPE }} .
ctest ${{ env.CTEST_SELECT }} --verbose --output-junit Testing/Temporary/results.xml --build-config ${{ env.CMAKE_BUILD_TYPE }} .
- name: Prepare Test Results
if: env.SKIP_JOB != 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_reusable-test-qemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ jobs:
if: env.SKIP_JOB != 'true'
continue-on-error: true
env:
LABEL_REGEX: ${{ matrix.kind == 'coverage' && '^(ut)$' || '^(.*)$' }}
CTEST_SELECT: ${{ matrix.kind == 'coverage' && '--tests-regex "^(Ut|BtApi)"' || '--label-regex "^(.*)$"' }}
run: |
cd ${{ env.ROOT_PATH }}
cd patomic/build
ctest --label-regex "${{ env.LABEL_REGEX }}" --verbose --output-junit Testing/Temporary/results.xml .
ctest ${{ env.CTEST_SELECT }} --verbose --output-junit Testing/Temporary/results.xml .
- name: Prepare Test Results
if: env.SKIP_JOB != 'true'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
architecture: ${{ matrix.architecture }}

test-qemu:
if: false # debug
strategy:
matrix:
# architecture gets converted to triple
Expand Down

0 comments on commit 26020e8

Please sign in to comment.