Repository navigation
test: characterize the obs-service getters before the Rust port (#1899) - #1901
Conversation
|
The first CI run passed, but in 0.03 s ( |
|
Evidence that the cases ran: |
6aba7fc to
284223b
Compare
Refs #1899 (#1846 unit 8, slice 1).
This is the characterization that lands before the port (testing-policy.md, "Characterization tests for units without C tests"). There is no Rust here.
test/cmocka/test_service_getters.cpins the current C behavior of the nine service capability and connect-info getters through the public API only. That way the same test runs on libobs, the hybrid libobs and libobs-c-reference, and it will see the later swap.The test registers two service types. "full" has every optional callback and "bare" has only the required ones. Each case checks that the getter forwards the service's own data pointer, and checks the value returned with and without a callback and with a NULL service. Two cases are characterized, not endorsed:
obs_service_get_max_bitratezeroes both out-parameters before it validates the service, so a NULL service still writes them.get_max_fpsvalidates first.It is registered in
build/test-graph.jsonwith the optional xvfb prefix, like the otherobs_startuptests. The obs-build graph contract's core count goes from 141 to 142, andnative_test_graph_replaces_legacy_utility_definitionspasses../lintpasses, including clang-format on the new file.Not run locally: the Tier 2 Docker lane couldn't configure in my clone, because the clone borrows git objects from a path that isn't mounted in Docker. PR CI's Tier 2 is the evidence.