Skip to content

test: enable BLE tests with comprehensive fakes and stubs#4

Closed
Mearman wants to merge 4 commits intomainfrom
fix/test-ble-subscriptions
Closed

test: enable BLE tests with comprehensive fakes and stubs#4
Mearman wants to merge 4 commits intomainfrom
fix/test-ble-subscriptions

Conversation

@Mearman
Copy link
Owner

@Mearman Mearman commented Mar 9, 2026

No description provided.

Mearman added 4 commits March 9, 2026 08:41
Add comprehensive fake implementations for BLE GATT and GAP testing:
- fake_GATTAPI: GATT server operations with service discovery
- fake_GAPAPI: GAP connection and advertising operations
- fake_HCIAPI: HCI layer abstraction
- fake_gatt_client_subscriptions: GATT subscription tracking
- fake_gap_le_connect_params: Connection parameter management

Signed-off-by: Joseph Mearman <[email protected]>
Add stub implementations for BLE driver layer:
- stubs_bt_driver_gatt: GATT driver operations
- stubs_bt_driver_gatt_client_discovery: Service discovery
- stubs_HCIAPI.h: HCI command interface
- stubs_L2CAPAPI.h: L2CAP layer interface
- stubs_gap_le_advert.h: GAP advertising interface
- stubs_gatt_client_discovery.h: GATT discovery interface
- stubs_bt_driver.h: Driver interface definitions

Signed-off-by: Joseph Mearman <[email protected]>
Fix BLE GATT subscription cleanup and connection parameter handling:
- gatt_client_subscriptions: Ensure proper subscription cleanup
- ppogatt: Fix connection parameter handling

Signed-off-by: Joseph Mearman <[email protected]>
Remove BLE-related tests from BROKEN_TESTS now that fakes/stubs exist:
- test_gatt_client_subscriptions
- test_gatt_client_accessors
- test_gatt_client_discovery
- test_gatt_service_changed_client
- test_gatt_service_changed_server
- test_gap_le_advert
- test_ppogatt

Also enable other tests with new fixtures:
- test_app_fetch_endpoint
- test_graphics_draw_text_flow
- test_perimeter
- test_ancs_pebble_actions
- test_timeline_actions
- test_bluetooth_persistent_storage_prf
- test_bluetooth_persistent_storage
- test_session
- test_session_receive_router
- test_compositor
- test_floor
- test_pow
- test_ams_util
- test_bt_conn_mgr
- test_ancs
- test_kernel_le_client
- test_action_menu_window
- test_activity_insights
- test_app_menu_data_source
- test_battery_monitor
- test_battery_ui_fsm
- test_data_logging
- test_emoji_fonts
- test_graphics_draw_circle_1bit
- test_graphics_draw_circle_8bit
- test_graphics_draw_line
- test_graphics_draw_rotated_bitmap
- test_graphics_fill_circle_1bit
- test_graphics_fill_circle_8bit
- test_graphics_gtransform_1bit
- test_graphics_gtransform_8bit
- test_hrm_manager
- test_js
- test_kickstart
- test_launcher_menu_layer
- test_pfs
- test_selection_windows
- test_system_theme
- test_timeline_peek_event
- test_timezone_database
- test_wakeup
- test_blob_db2_endpoint

Add platform support for silk, cutts, and robert platforms.
Improve Xbit fixture handling to skip when platform-specific files exist.

Signed-off-by: Joseph Mearman <[email protected]>
@Mearman Mearman closed this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant