Expose reusable test harness libraries - #237
Open
zayenz wants to merge 7 commits into
Open
Conversation
This was referenced Sep 6, 2026
zayenz
force-pushed
the
feature/test-library
branch
from
September 6, 2026 14:45
72d677a to
6c7b9ef
Compare
zayenz
force-pushed
the
feature/test-library
branch
from
September 10, 2026 07:00
fb004a5 to
606bc09
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Downstream propagator projects can use Gecode's test harness through installed libraries and headers. The harness provides registration, a runner, and helpers for integer/Boolean, set, and float tests, with set and float support following the configured variable modules.
The libraries follow Gecode's shared/static build options in CMake and Autoconf. CMake exports the
testcomponent andGecode::gecodetest,Gecode::gecodetestint,Gecode::gecodetestset, andGecode::gecodetestfloat, with dependencies on matching library variants. Gecode's own test executable uses the same libraries.Failure diagnostics include an exact
-replaycommand for the failing iteration. The guide covers independent solution oracles, common variable domains, the controls available to each family, and installed-package consumption. The changelog records the feature for Gecode 6.5.0.Validation includes public smoke tests, exact seed replay, full shared installations through CMake and Autoconf, an integer-only static installation, and installed consumers using CMake and direct compiler linking. The CI matrix also checks the public smokes and an installed consumer in Windows shared and static builds.