Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add modulestest logs to CI report #259

Merged
merged 11 commits into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ jobs:
working-directory: ${{ env.container-workspace }}/build
cmd: ctest

- name: Run modulestest
if: success() || failure()
uses: ./.github/actions/container-exec
with:
container: ${{ steps.container.outputs.id }}
working-directory: ${{ env.container-workspace }}/build/modules/test
cmd: |
mkdir -p /etc/osconfig/
./modulestest --gtest_output=xml:${{ env.container-workspace }}/build/gtest-output/TestRecipes.xml testplate.json

- uses: ./.github/actions/gtest-xml
if: success() || failure()
with:
Expand Down
6 changes: 0 additions & 6 deletions src/modules/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

include(GoogleTest)
project(modulestest)

set(CMAKE_CXX_STANDARD 17)
Expand Down Expand Up @@ -37,11 +36,6 @@ else()
)
endif()

gtest_discover_tests(modulestest
EXTRA_ARGS ${CMAKE_CURRENT_BINARY_DIR}/testplate.json
XML_OUTPUT_DIR ${GTEST_OUTPUT_DIR}
)

if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8)
target_link_libraries(modulestest stdc++fs)
endif()
Expand Down