mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Skip OpenGL version printout when test-sfml-window does not exist
This commit is contained in:
parent
913d7358ac
commit
705307f725
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -132,13 +132,13 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
if [ "${{ runner.os }}" == "Windows" ]; then
|
if [ "${{ runner.os }}" == "Windows" ]; then
|
||||||
# Make use of a test to print OpenGL vendor/renderer/version info to the console
|
# Make use of a test to print OpenGL vendor/renderer/version info to the console
|
||||||
find $GITHUB_WORKSPACE/build/bin -name test-sfml-window.exe -exec {} --test-case="[Window] sf::Context" --subcase="Version String" \; | grep OpenGL
|
find $GITHUB_WORKSPACE/build/bin -name test-sfml-window.exe -exec sh -c "{} --test-case=\"[Window] sf::Context\" --subcase=\"Version String\" | grep OpenGL" \;
|
||||||
# Run the tests
|
# Run the tests
|
||||||
cmake --build $GITHUB_WORKSPACE/build --target runtests --config ${{ matrix.type.name == 'Debug' && 'Debug' || 'Release' }}
|
cmake --build $GITHUB_WORKSPACE/build --target runtests --config ${{ matrix.type.name == 'Debug' && 'Debug' || 'Release' }}
|
||||||
# Coverage is already generated on Windows when running tests.
|
# Coverage is already generated on Windows when running tests.
|
||||||
else
|
else
|
||||||
# Make use of a test to print OpenGL vendor/renderer/version info to the console
|
# Make use of a test to print OpenGL vendor/renderer/version info to the console
|
||||||
find $GITHUB_WORKSPACE/build/bin -name test-sfml-window -exec {} --test-case="[Window] sf::Context" --subcase="Version String" \; | grep OpenGL
|
find $GITHUB_WORKSPACE/build/bin -name test-sfml-window -exec sh -c "{} --test-case=\"[Window] sf::Context\" --subcase=\"Version String\" | grep OpenGL" \;
|
||||||
# Run the tests
|
# Run the tests
|
||||||
ctest --test-dir $GITHUB_WORKSPACE/build --output-on-failure -C ${{ matrix.type.name == 'Debug' && 'Debug' || 'Release' }}
|
ctest --test-dir $GITHUB_WORKSPACE/build --output-on-failure -C ${{ matrix.type.name == 'Debug' && 'Debug' || 'Release' }}
|
||||||
# Run gcovr to extract coverage information from the test run
|
# Run gcovr to extract coverage information from the test run
|
||||||
|
Loading…
Reference in New Issue
Block a user