Skip to content

Add system requirements test suite with BLE verification#9

Draft
Copilot wants to merge 5 commits into
mainfrom
copilot/add-test-suite-for-requirements
Draft

Add system requirements test suite with BLE verification#9
Copilot wants to merge 5 commits into
mainfrom
copilot/add-test-suite-for-requirements

Conversation

Copilot AI commented Nov 22, 2025

Copy link
Copy Markdown

Adds automated verification for LibrePods Windows system requirements: Windows version, Bluetooth/BLE support, Qt6 modules, and OpenSSL.

Implementation

Test Suite (windows/tests/test_system_requirements.cpp)

  • Verifies Windows 10 build 17763+ or Windows 11
  • Checks Bluetooth adapter presence and BLE capability
  • Validates Qt 6.2+ with required modules (Quick, Widgets, Bluetooth, Multimedia)
  • Confirms OpenSSL support for encrypted AirPods communication
  • Uses Qt Test framework with 9 test cases, clear ✓/✗/⚠ output

Build Integration

  • Optional BUILD_TESTS CMake flag (off by default)
  • CTest integration for CI/CD
  • PowerShell runner script (run_tests.ps1) with vcpkg/Qt path support

Usage

# Quick check
.\run_tests.ps1 -VcpkgPath "C:\path\to\vcpkg"

# Or build with tests
cmake .. -DBUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE="path/to/vcpkg.cmake"
ctest -C Release --verbose

Documentation

  • tests/README.md - Basic usage and troubleshooting
  • tests/TESTING_GUIDE.md - Comprehensive guide with CI examples
  • tests/test_bluetooth_example.cpp - Template for extending suite
  • Updated main README and BUILD_AND_TEST.md with test instructions

Output Example

Testing Bluetooth support...
  Number of Bluetooth adapters found: 1
  ✓ Bluetooth adapter(s) detected
    Adapter 0: Intel Bluetooth Adapter

Testing BLE support...
  ✓ BLE support is available
    Qt Bluetooth module is built with BLE support

Memory-safe implementation (addressed review feedback on QBluetoothLocalDevice lifecycle).

Original prompt

Lets create a test suite for this Repo. I Want to create a test to check if a system meets all requieremts for the program. E.G. BLE support etc.

Created from VS Code via the GitHub Pull Request extension.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Nov 22, 2025
Copilot AI and others added 4 commits November 22, 2025 17:05
Co-authored-by: Tblob18 <25061843+Tblob18@users.noreply.github.com>
Co-authored-by: Tblob18 <25061843+Tblob18@users.noreply.github.com>
Co-authored-by: Tblob18 <25061843+Tblob18@users.noreply.github.com>
Co-authored-by: Tblob18 <25061843+Tblob18@users.noreply.github.com>
Copilot AI changed the title [WIP] Add test suite to validate program requirements Add system requirements test suite with BLE verification Nov 22, 2025
Copilot AI requested a review from Tblob18 November 22, 2025 17:12
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.

2 participants