-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,11 @@ on: | |
- synchronize | ||
- reopened | ||
|
||
permissions: | ||
contents: read | ||
actions: read | ||
checks: write | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build: | ||
|
@@ -193,6 +198,24 @@ jobs: | |
id: unittests | ||
run: meson test -C build --print-errorlogs | ||
|
||
- name: Collect test logs | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: unit-test-junit-log-${{ matrix.os }}-${{ matrix.compiler }} | ||
path: 'build/*junit.xml' | ||
if-no-files-found: ignore | ||
retention-days: 5 | ||
|
||
- name: Test Reporter | ||
uses: dorny/[email protected] | ||
if: ${{ always() }} | ||
continue-on-error: true | ||
with: | ||
name: Unit tests ${{ matrix.os }} ${{ matrix.compiler }} | ||
path: 'build/*junit.xml' | ||
reporter: java-junit | ||
|
||
- if: ${{ steps.unittests.conclusion == 'failure' && failure() }} | ||
name: Test backtrace | ||
run: | | ||
|
@@ -257,7 +280,7 @@ jobs: | |
name: dregarnuhr-${{ matrix.os }}-${{ matrix.compiler }} | ||
path: | | ||
build/src/dregarnuhr | ||
build/src/*_test | ||
'build/src/*_test' | ||
- if: ${{ matrix.flavor == 'windows' && (success() || failure()) }} | ||
name: Binary Windows | ||
|
@@ -266,7 +289,7 @@ jobs: | |
name: dregarnuhr-${{ matrix.os }} | ||
path: | | ||
build/src/dregarnuhr.exe | ||
build/src/*_test.exe | ||
'build/src/*_test.exe' | ||
check-run-linux: | ||
needs: build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[wrap-git] | ||
url = https://github.com/boost-ext/ut.git | ||
revision = e53a47d37bc594e80bd5f1b8dc1ade8dce4429d3 | ||
directory = ut-e53a47d | ||
revision = v2.0.0 | ||
directory = ut-v2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
|
||
|
||
test('Simple', exe, args: ['--check']) | ||
|
||
ut_args = ['-r', 'junit', '-o'] | ||
volumes_test = executable('volumes_test', 'volumes.cpp', | ||
dependencies: [boostut_dep, dep]) | ||
test('volumes', volumes_test) | ||
test('volumes', volumes_test, | ||
args: [ut_args, 'volumes-junit.xml']) | ||
|
||
utils_test = executable('utils_test', 'utils.cpp', | ||
dependencies: [boostut_dep, dep]) | ||
test('utils', utils_test) | ||
test('utils', utils_test, | ||
args: [ut_args, 'utils-junit.xml']) | ||
|
||
args_test = executable('args_test', 'args.cpp', | ||
dependencies: [boostut_dep, dep]) | ||
test('args', args_test) | ||
test('args', args_test, | ||
args: [ut_args, 'args-junit.xml']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters