Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into add_test_scripts_…
Browse files Browse the repository at this point in the history
…for_presets
  • Loading branch information
nivi-apple committed Jul 30, 2024
2 parents 0812501 + b426fde commit 6d2f9f8
Show file tree
Hide file tree
Showing 402 changed files with 8,841 additions and 2,558 deletions.
1 change: 1 addition & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ href
HSM
hsm
HTTPS
Humidistat
HW
hwadr
HydrogenConcentrationMeasurement
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@ jobs:
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_RVCOPSTATE_2_4.py'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_SC_7_1.py'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_SWTCH.py'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_WHM_1_2.py'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_WHM_2_1.py'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_LVL_2_3.py'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TCP_Tests.py'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --script "src/python_testing/TestConformanceSupport.py" --script-args "--trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --script "src/python_testing/TestMatterTestingSupport.py" --script-args "--trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --script "src/python_testing/TestSpecParsingSupport.py" --script-args "--trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
Expand Down
2 changes: 2 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") {
"${chip_root}/src/lib/core/tests:fuzz-tlv-reader",
"${chip_root}/src/lib/dnssd/minimal_mdns/tests:fuzz-minmdns-packet-parsing",
"${chip_root}/src/lib/format/tests:fuzz-payload-decoder",
"${chip_root}/src/setup_payload/tests:fuzz-setup-payload-base38",
"${chip_root}/src/setup_payload/tests:fuzz-setup-payload-base38-decode",
]
}
}
Expand Down
11 changes: 10 additions & 1 deletion config/nrfconnect/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ matter_generate_args_tmp_file()
# ==============================================================================

matter_build(chip
LIB_SHELL ${CONFIG_CHIP_LIB_SHELL}
LIB_TESTS ${CONFIG_CHIP_BUILD_TESTS}
DEVICE_INFO_EXAMPLE_PROVIDER ${CONFIG_CHIP_EXAMPLE_DEVICE_INFO_PROVIDER}
GN_DEPENDENCIES kernel
Expand All @@ -225,6 +224,16 @@ if (CONFIG_CHIP_MALLOC_SYS_HEAP_OVERRIDE)
)
endif()

if (CONFIG_CHIP_LIB_SHELL)
# Force pulling chip::Shell::Engine::RunMainLoop() in the final binary.
# Without this workaround, the linker script does not process the shell and
# init objects defined in MainLoopZephyr.cpp unless the Matter library or
# the Matter shell library is linked using the '--whole-archive' flag.
target_link_options(chip INTERFACE
-Wl,-u,_ZN4chip5Shell6Engine11RunMainLoopEv
)
endif()

# ==============================================================================
# Define 'chip-ota-image' target for building CHIP OTA image
# ==============================================================================
Expand Down
134 changes: 122 additions & 12 deletions data_model/master/clusters/ACL-Cluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,18 @@ Davis, CA 95616, USA
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x001F" name="Access Control Cluster" revision="2">
<revisionHistory>
<revision revision="1" summary="Initial Release"/>
<revision revision="2" summary="Added Managed feature"/>
<revision revision="1" summary="Initial revision"/>
<revision revision="2" summary="Added Managed Device feature, Extension feature, fixed conformance"/>
</revisionHistory>
<clusterIds>
<clusterId id="0x001F" name="AccessControl"/>
</clusterIds>
<classification hierarchy="base" role="utility" picsCode="ACL" scope="Node"/>
<features>
<feature bit="0" code="MNGD" name="Managed" summary="Device is managed">
<feature bit="0" code="EXTS" name="Extension" summary="Device provides ACL Extension attribute">
<optionalConform/>
</feature>
<feature bit="1" code="MNGD" name="Managed" summary="Device is managed">
<optionalConform/>
</feature>
</features>
Expand All @@ -80,11 +83,6 @@ Davis, CA 95616, USA
<item value="3" name="Group" summary="Group authenticated session">
<mandatoryConform/>
</item>
<item value="4" name="ALL" summary="All modes">
<mandatoryConform>
<feature name="MNGD"/>
</mandatoryConform>
</item>
</enum>
<enum name="AccessControlEntryPrivilegeEnum">
<item value="1" name="View" summary="Can read and observe all (except Access Control Cluster and as seen by a non-Proxy)">
Expand All @@ -106,6 +104,20 @@ Davis, CA 95616, USA
<mandatoryConform/>
</item>
</enum>
<enum name="AccessRestrictionTypeEnum">
<item value="0" name="AttributeAccessForbidden" summary="Clients on this fabric are currently forbidden from reading and writing an attribute">
<mandatoryConform/>
</item>
<item value="1" name="AttributeWriteForbidden" summary="Clients on this fabric are currently forbidden from writing an attribute">
<mandatoryConform/>
</item>
<item value="2" name="CommandForbidden" summary="Clients on this fabric are currently forbidden from invoking a command">
<mandatoryConform/>
</item>
<item value="3" name="EventForbidden" summary="Clients on this fabric are currently forbidden from reading an event">
<mandatoryConform/>
</item>
</enum>
<enum name="ChangeTypeEnum">
<item value="0" name="Changed" summary="Entry or extension was changed">
<mandatoryConform/>
Expand Down Expand Up @@ -164,6 +176,45 @@ Davis, CA 95616, USA
<mandatoryConform/>
</field>
</struct>
<struct name="AccessRestrictionEntryStruct">
<field id="0" name="Endpoint" type="endpoint-no">
<access fabricSensitive="true"/>
<mandatoryConform/>
</field>
<field id="1" name="Cluster" type="cluster-id">
<access fabricSensitive="true"/>
<mandatoryConform/>
</field>
<field id="2" name="Restrictions" type="list" default="desc">
<entry type="AccessRestrictionStruct"/>
<access fabricSensitive="true"/>
<mandatoryConform/>
<constraint type="minCount" value="1"/>
</field>
<access fabricScoped="true"/>
</struct>
<struct name="AccessRestrictionStruct">
<field id="0" name="Type" type="AccessRestrictionTypeEnum">
<mandatoryConform/>
</field>
<field id="1" name="ID" type="uint32">
<quality nullable="true"/>
<mandatoryConform/>
</field>
</struct>
<struct name="CommissioningAccessRestrictionEntryStruct">
<field id="0" name="Endpoint" type="endpoint-no">
<mandatoryConform/>
</field>
<field id="1" name="Cluster" type="cluster-id">
<mandatoryConform/>
</field>
<field id="2" name="Restrictions" type="list" default="desc">
<entry type="AccessRestrictionStruct"/>
<mandatoryConform/>
<constraint type="minCount" value="1"/>
</field>
</struct>
</dataTypes>
<attributes>
<attribute id="0x0000" name="ACL" type="list" default="desc">
Expand All @@ -175,7 +226,9 @@ Davis, CA 95616, USA
<attribute id="0x0001" name="Extension" type="list" default="desc">
<entry type="AccessControlExtensionStruct"/>
<access read="true" write="true" readPrivilege="admin" writePrivilege="admin" fabricScoped="true"/>
<optionalConform/>
<mandatoryConform>
<feature name="EXTS"/>
</mandatoryConform>
<constraint type="desc"/>
</attribute>
<attribute id="0x0002" name="SubjectsPerAccessControlEntry" type="uint16" default="4">
Expand All @@ -196,15 +249,45 @@ Davis, CA 95616, USA
<mandatoryConform/>
<constraint type="min" value="4"/>
</attribute>
<attribute id="0x0005" name="ManagedACL" type="list" default="desc">
<entry type="AccessControlEntryStruct"/>
<attribute id="0x0005" name="CommissioningARL" type="list" default="[]">
<entry type="CommissioningAccessRestrictionEntryStruct"/>
<access read="true" readPrivilege="view"/>
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
<mandatoryConform>
<feature name="MNGD"/>
</mandatoryConform>
<constraint type="desc"/>
</attribute>
<attribute id="0x0006" name="ARL" type="list" default="[]">
<entry type="AccessRestrictionEntryStruct"/>
<access read="true" readPrivilege="view" fabricScoped="true"/>
<mandatoryConform>
<feature name="MNGD"/>
</mandatoryConform>
<constraint type="desc"/>
</attribute>
</attributes>
<commands>
<command id="0x00" name="ReviewFabricRestrictions" direction="commandToServer" response="ReviewFabricRestrictionsResponse">
<access invokePrivilege="admin" fabricScoped="true"/>
<mandatoryConform>
<feature name="MNGD"/>
</mandatoryConform>
<field id="0" name="ARL" type="list" default="desc">
<entry type="AccessRestrictionStruct"/>
<mandatoryConform/>
<constraint type="desc"/>
</field>
</command>
<command id="0x01" name="ReviewFabricRestrictionsResponse" direction="responseFromServer">
<mandatoryConform>
<feature name="MNGD"/>
</mandatoryConform>
<field id="0" name="Token" type="uint64">
<mandatoryConform/>
</field>
</command>
</commands>
<events>
<event id="0x00" name="AccessControlEntryChanged" priority="info">
<access readPrivilege="admin" fabricSensitive="true"/>
Expand All @@ -229,7 +312,9 @@ Davis, CA 95616, USA
</event>
<event id="0x01" name="AccessControlExtensionChanged" priority="info">
<access readPrivilege="admin" fabricSensitive="true"/>
<mandatoryConform/>
<mandatoryConform>
<feature name="EXTS"/>
</mandatoryConform>
<field id="1" name="AdminNodeID" type="node-id">
<quality nullable="true"/>
<mandatoryConform/>
Expand All @@ -248,5 +333,30 @@ Davis, CA 95616, USA
<mandatoryConform/>
</field>
</event>
<event id="0x02" name="AccessRestrictionEntryChanged" priority="info">
<access readPrivilege="admin" fabricSensitive="true"/>
<mandatoryConform>
<feature name="MNGD"/>
</mandatoryConform>
</event>
<event id="0x03" name="FabricRestrictionReviewUpdate" priority="info">
<access readPrivilege="admin" fabricSensitive="true"/>
<mandatoryConform>
<feature name="MNGD"/>
</mandatoryConform>
<field id="0" name="Token" type="uint64">
<mandatoryConform/>
</field>
<field id="1" name="Instruction" type="string">
<quality nullable="true"/>
<mandatoryConform/>
<constraint type="maxLength" value="512"/>
</field>
<field id="2" name="RedirectURL" type="string">
<quality nullable="true"/>
<mandatoryConform/>
<constraint type="maxLength" value="256"/>
</field>
</event>
</events>
</cluster>
2 changes: 1 addition & 1 deletion data_model/master/clusters/AccountLogin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Davis, CA 95616, USA
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x050E" name="Account Login Cluster" revision="2">
<revisionHistory>
<revision revision="1" summary="Initial Release"/>
<revision revision="1" summary="Initial revision"/>
<revision revision="2" summary="Add support for 8 character PIN code, Add Node to Login, Logout commands. Add LoggedOut event."/>
</revisionHistory>
<clusterIds>
Expand Down
2 changes: 1 addition & 1 deletion data_model/master/clusters/AdminCommissioningCluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Davis, CA 95616, USA
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x003C" name="Administrator Commissioning Cluster" revision="1">
<revisionHistory>
<revision revision="1" summary="Initial Release"/>
<revision revision="1" summary="Initial revision"/>
</revisionHistory>
<clusterIds>
<clusterId id="0x003C" name="Administrator Commissioning"/>
Expand Down
2 changes: 1 addition & 1 deletion data_model/master/clusters/AirQuality.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Davis, CA 95616, USA
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x005B" name="Air Quality Cluster" revision="1">
<revisionHistory>
<revision revision="1" summary="Initial version of the Air Quality cluster"/>
<revision revision="1" summary="Initial revision"/>
</revisionHistory>
<clusterIds>
<clusterId id="0x005B" name="Air Quality"/>
Expand Down
2 changes: 1 addition & 1 deletion data_model/master/clusters/ApplicationBasic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Davis, CA 95616, USA
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x050D" name="Application Basic Cluster" revision="1">
<revisionHistory>
<revision revision="1" summary="Initial Release"/>
<revision revision="1" summary="Initial revision"/>
</revisionHistory>
<clusterIds>
<clusterId id="0x050D" name="Application Basic"/>
Expand Down
18 changes: 14 additions & 4 deletions data_model/master/clusters/ApplicationLauncher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ Davis, CA 95616, USA
:xrefstyle: basic
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x050C" name="Application Launcher Cluster" revision="1">
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x050C" name="Application Launcher Cluster" revision="2">
<revisionHistory>
<revision revision="1" summary="Initial Release"/>
<revision revision="1" summary="Initial revision"/>
<revision revision="2" summary="Addition of new states to StatusEnum"/>
</revisionHistory>
<clusterIds>
<clusterId id="0x050C" name="Application Launcher"/>
Expand All @@ -75,10 +76,19 @@ Davis, CA 95616, USA
<item value="0" name="Success" summary="Command succeeded">
<mandatoryConform/>
</item>
<item value="1" name="AppNotAvailable" summary="Requested app is not available.">
<item value="1" name="AppNotAvailable" summary="Requested app is not available">
<mandatoryConform/>
</item>
<item value="2" name="SystemBusy" summary="Video platform unable to honor command.">
<item value="2" name="SystemBusy" summary="Video platform unable to honor command">
<mandatoryConform/>
</item>
<item value="3" name="PendingUserApproval" summary="User approval for app download is pending">
<mandatoryConform/>
</item>
<item value="4" name="Downloading" summary="Downloading the requested app">
<mandatoryConform/>
</item>
<item value="5" name="Installing" summary="Installing the requested app">
<mandatoryConform/>
</item>
</enum>
Expand Down
2 changes: 1 addition & 1 deletion data_model/master/clusters/AudioOutput.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Davis, CA 95616, USA
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x050B" name="Audio Output Cluster" revision="1">
<revisionHistory>
<revision revision="1" summary="Initial Release"/>
<revision revision="1" summary="Initial revision"/>
</revisionHistory>
<clusterIds>
<clusterId id="0x050B" name="Audio Output"/>
Expand Down
Loading

0 comments on commit 6d2f9f8

Please sign in to comment.