diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 21:18:49 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 21:23:46 +0300 |
commit | f166c71e88d84a640eed1bc99535856f5baac95b (patch) | |
tree | 9ebcc63633f9d18aed04056e40793c2a19e0efbc /.github/workflows | |
parent | workflows/ci: Bionic to Focal (diff) | |
download | winapi-debug-f166c71e88d84a640eed1bc99535856f5baac95b.tar.gz winapi-debug-f166c71e88d84a640eed1bc99535856f5baac95b.zip |
add CTest tests
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yml | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5dc021c..0ba4227 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,25 +70,8 @@ jobs: with: name: 'pdb-repo-${{ matrix.os }}-${{ matrix.toolset }}-${{ matrix.platform }}-${{ matrix.configuration }}' path: '${{ runner.workspace }}/build/install/' - - name: Run unit tests - run: ../build/install/bin/test/unit_tests --log_level=all - if: runner.os == 'Windows' - - name: Run enum_symbols tests - run: ../build/install/bin/enum_symbols --pdb ../build/install/bin/test/test_lib.pdb --mask 'test_ns:*' - if: runner.os == 'Windows' - - name: Check enum_symbols output - run: | - $(../build/install/bin/enum_symbols --pdb ../build/install/bin/test/test_lib.pdb | Select-String -Pattern 'test_ns::baz' -SimpleMatch -Quiet) -or $(throw 'test_ns::baz not enumerated among the symbols') - $(../build/install/bin/enum_symbols --pdb ../build/install/bin/test/test_lib.pdb | Select-String -Pattern 'test_ns::bar' -SimpleMatch -Quiet) -or $(throw 'test_ns::bar not enumerated among the symbols') - $(../build/install/bin/enum_symbols --pdb ../build/install/bin/test/test_lib.pdb | Select-String -Pattern 'test_ns::foo' -SimpleMatch -Quiet) -or $(throw 'test_ns::foo not enumerated among the symbols') - $(../build/install/bin/enum_symbols --pdb ../build/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: ../build/install/bin/test/call_stack - if: runner.os == 'Windows' - - name: Check call_stack output + - name: Test run: | - $(../build/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') - $(../build/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') - $(../build/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') + cd ../build/cmake + ctest -C '${{ env.CONFIGURATION }}' --verbose if: runner.os == 'Windows' |