Repository navigation
test: Pin the rest of obs_bounds_fit_scale - #1469
Merged
Merged
Conversation
The empty-source cases and the wide 200x100 fit stay as they are. These cases pin the tall source, a base scale that differs per axis, a zero axis that keeps its scale, stretch of a zero scale, the max-only edge of the box, and OBS_BOUNDS_NONE. Refs obs-rust#1468
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.
Description
Refs #1468. Characterization before the port of
libobs/obs-scene-bounds.c.h. No Rust in this change. The port may not edit this test.test/cmocka/test_scene_bounds_fit.calready pinned the empty-source regression and the wide 200x100 fit into 800x600. The new cases pin the branches those tests only checked as finite.tall_source_uses_the_other_axisuneven_base_scale_is_multipliedzero_axis_keeps_its_scalestretch_zero_scale_is_positivemax_only_shrinks_only_past_the_boxbounds_none_keeps_scaleOBS_BOUNDS_NONEmatches no branch. The scale is unchanged.The five tests that were already in the file are unchanged.
Motivation and Context
obs_bounds_fit_scaleis the next unclaimed libobs core unit (#1468). The port has to match the C, and the old test let a wrong tall-source fit, a uniform-only scale, and a stretch of zero through as long as the result was finite. This pins those results against the C file before the Rust PR.The test compiles
obs-scene-bounds.c.hinto itself. The function is not exported from libobs, so this binary does not see a later Rust swap.test_group_empty_boundsis the scene-level check.How Has This Been Tested?
macOS arm64, the existing
build_rust_OFFobjectobs-scene-bounds.o(the C file, unchanged) linked with this test and Homebrew cmocka 2.0.2. 11/11 passed, the original five and the six added here.The local gate is not stamped. This PR is from the fork, so CI runs the suite anyway.
Types of changes
Checklist: