Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add framework for device basic composition test (#27208)
* Add basic framework for device basic composition test Problem: - No test exists that validates global data model and system model rules related to device composition. - This makes verification patchy and can miss non-conformance. Changes in this PR: - Introduce the TC_DeviceBasicComposition test with already a few important tests, such as validation of presence and content for all mandatory global attributes. - Some additional frameworking to report non-fatal problems in Python testing framework. - Ability to dump the topology of a device. Testing done: - Ran the test against all clusters app in a bootstrapped environment - `scripts/build_python.sh -m platform -i build-env` - `. ./scripts/activate.sh` - `scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug/standalone chip_config_network_layer_ble=false` - Then in a different terminal: - `rm -f kvs1 && out/debug/standalone/chip-all-clusters-app --KVS kvs1` - Back in initial terminal: - `python3 src/python_testing/TC_DeviceBasicComposition.py --manual-code 34970112332 --string-arg dump_device_composition_path:dump_file` - Added the test to CI running against same * Restyled by isort * Fix lints * Apply review comments * Fix to work with Python 3.9 * Restyled by autopep8 * Fix CI --------- Co-authored-by: Restyled.io <[email protected]> Co-authored-by: [email protected] <[email protected]>
- Loading branch information