diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-24 01:30:18 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-24 01:57:42 +0300 |
commit | 5e1cf98efb66bff54a8d5769bd025427e4fbf398 (patch) | |
tree | 9cd88ec4c89098cf57e20ec579125ca2287eea3d /.github | |
parent | README: update (diff) | |
download | winapi-debug-5e1cf98efb66bff54a8d5769bd025427e4fbf398.tar.gz winapi-debug-5e1cf98efb66bff54a8d5769bd025427e4fbf398.zip |
workflows/ci.yml: run unit tests
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29f8458..6ff87b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: # it's much faster. os: [ubuntu-20.04, windows-2016, windows-2019] platform: [x64, x86] - configuration: [Debug, Release] + configuration: [Debug, RelWithDebInfo] include: # Prettier run names. - {os: windows-2016, toolset: msvc, name: VS 2017} @@ -76,3 +76,25 @@ jobs: with: name: 'pdb-repo-${{ matrix.os }}-${{ matrix.platform }}-${{ matrix.configuration }}' path: '${{ runner.workspace }}/install/' + - name: Run unit tests + run: ../install/bin/test/unit_tests --log_level=all + if: runner.os == 'Windows' + - name: Run enum_symbols tests + run: ../install/bin/enum_symbols --pdb ../install/bin/test/test_lib.pdb --mask 'test_ns:*' + if: runner.os == 'Windows' + - name: Check enum_symbols output + run: | + $(../install/bin/enum_symbols --pdb ../install/bin/test/test_lib.pdb | Select-String -Pattern 'test_ns::baz' -SimpleMatch -Quiet) -or $(throw 'test_ns::baz not enumerated among the symbols') + $(../install/bin/enum_symbols --pdb ../install/bin/test/test_lib.pdb | Select-String -Pattern 'test_ns::bar' -SimpleMatch -Quiet) -or $(throw 'test_ns::bar not enumerated among the symbols') + $(../install/bin/enum_symbols --pdb ../install/bin/test/test_lib.pdb | Select-String -Pattern 'test_ns::foo' -SimpleMatch -Quiet) -or $(throw 'test_ns::foo not enumerated among the symbols') + $(../install/bin/enum_symbols --pdb ../install/bin/test/test_lib.pdb | Select-String -Pattern 'test_ns::var' -SimpleMatch -Quiet) -or $(throw 'test_ns::var not enumerated among the symbols') + if: runner.os == 'Windows' + - name: Run call_stack + run: ../install/bin/test/call_stack + if: runner.os == 'Windows' + - name: Check call_stack output + run: | + $(../install/bin/test/call_stack | Select-String -Pattern '[test_lib!test_ns::baz' -SimpleMatch -Quiet) -or $(throw 'test_ns::baz not found in the call stack') + $(../install/bin/test/call_stack | Select-String -Pattern '[test_lib!test_ns::bar' -SimpleMatch -Quiet) -or $(throw 'test_ns::bar not found in the call stack') + $(../install/bin/test/call_stack | Select-String -Pattern '[test_lib!test_ns::foo' -SimpleMatch -Quiet) -or $(throw 'test_ns::foo not found in the call stack') + if: runner.os == 'Windows' |