Repository navigation
test(libobs): Phase 4 characterization tests (#7) - #38
Merged
Merged
Conversation
…atform utilities (#7)
Local-Gate: v1 tree=b6be1cd0f3aecb66603e4676eb6dff324a3e7f7f secs=21 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791542615,"gate":"rust/all/fmt","host":"linux-x86_64","key":"8285294dc5212242511f6fae09b21b5d3c10c4eb676c0cbc0ce48f4afc0c5866","lane":"lint","parents":["9a4eee467454f54a17656f8e2fd8d5df8e430fb3"],"secs":8,"stamp":"f72754bcf571b549fa713789d8d827f7","tree":"b6be1cd0f3aecb66603e4676eb6dff324a3e7f7f","v":1,"via":"run"}
Ci-Attestation: {"at":1791542615,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"8285294dc5212242511f6fae09b21b5d3c10c4eb676c0cbc0ce48f4afc0c5866","lane":"lint","parents":["9a4eee467454f54a17656f8e2fd8d5df8e430fb3"],"secs":8,"stamp":"44ee84eba040e80d955df3654f980fcb","tree":"b6be1cd0f3aecb66603e4676eb6dff324a3e7f7f","v":1,"via":"run"}
Ci-Attestation: {"at":1791542615,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"89eeeb7b68e2208392ae8255531e362ddbcd4fc3fae510114996e01062e7197b","lane":"rust-test","parents":["9a4eee467454f54a17656f8e2fd8d5df8e430fb3"],"secs":3,"stamp":"205ee328c9e2e0041e66a384090ff943","tree":"b6be1cd0f3aecb66603e4676eb6dff324a3e7f7f","v":1,"via":"run"}
Ci-Attestation: {"at":1791542615,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"fb563e2ddd55f357e72475058a283442dd8472f48644d2eb588de32d65312897","lane":"tier2-linux","parents":["9a4eee467454f54a17656f8e2fd8d5df8e430fb3"],"secs":9,"stamp":"497b787acd1208a75ca19d4d5cc15af6","tree":"b6be1cd0f3aecb66603e4676eb6dff324a3e7f7f","v":1,"via":"run"}
This was referenced Oct 9, 2026
Closed
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.
Refs #7
This is the first Phase 4 PR. It adds cmocka characterization tests that pin the current C behavior of the stateful, I/O and platform utilities before any Rust port starts:
test_file_serializercovers file-serializer.c and buffered-file-serializer.c.test_config_filecovers config-file.c.test_threadingcovers threading-posix.c / threading-windows.c and the atomics.test_taskcovers task.c.test_pipecovers pipe.c / pipe-posix.c.test_profilercovers profiler.c.test_platformcovers platform.c / platform-nix.c / platform-windows.c.The PR also registers all seven tests in
test/cmocka/CMakeLists.txtand adds the Phase 4 port order and rules todocs/rust-port/testing-policy.md.Verification (Linux)
rust/tools/linux-validate/run.sh: 21/21 ctest tests pass with ENABLE_RUST_LIBOBS=OFF and with ON, including all seven new ones../lintpasses after a clang-format rewrap, which is committed separately../unittestpasses (rust-test and tier2-linux).test_config_file/test_parse_duplicatespasses, which confirms that lookups resolve to the later duplicate key and section (uthash head insertion).Not verified locally
ctest --repeat until-fail:100 -R 'test_threading|test_task'. The integrator role cannot start containers, and the NixOS host has no OBS build dependencies.test_platform(os_safe_replace with a backup, os_mkdir with a missing parent, MSVC warnings-as-errors), the BOM thatconfig_savewrites on Windows, and w32-pthreads linking fortest_threading/test_task.