KhronosGroup / KhronosGroup/Vulkan-Hpp

Execute select tests after building

Open
#2,390 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
3.8k
Forks
374
Avg merge
23h 4m
Merged PRs (30d)
32

Description

Some tests are meant to be executed and should therefore be run in CI as well.
The easiest way is to make use of [try_run](https://cmake.org/cmake/help/latest/command/try_run.html), which would work for both the CTest and non-CTest test versions.

The only issue would be that the required CMake version needs to be bumped to `3.25`. That could be solved by only bumping the version required when tests are enabled.

Contributor guide

Open the contributing guide

Research direction

Start with the CMake configuration for CTest and non-CTest test builds, then inspect how CI enables tests. Verify that try_run executes the intended tests in both modes and that the CMake 3.25 requirement applies only when tests are enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, ci-cd, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.