-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the list of YAML tests runned with chip-tool under examples/chip…
…-tool/templates/tests.js (#10574) * Move the list of YAML tests runned with chip-tool under examples/chip-tool/templates/helper.js * Update generated chip-tool tests (just reordered)
- Loading branch information
1 parent
e1a51e0
commit 1147684
Showing
5 changed files
with
10,948 additions
and
10,783 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
/* | ||
* | ||
* Copyright (c) 2021 Project CHIP Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
function getTests() | ||
{ | ||
const BinaryInput = [ | ||
'Test_TC_BI_1_1', | ||
]; | ||
|
||
const ColorControl = [ | ||
'Test_TC_CC_1_1', | ||
'Test_TC_CC_3_1', | ||
'Test_TC_CC_3_2', | ||
'Test_TC_CC_3_3', | ||
'Test_TC_CC_4_1', | ||
'Test_TC_CC_4_2', | ||
'Test_TC_CC_4_3', | ||
'Test_TC_CC_4_4', | ||
'Test_TC_CC_5_1', | ||
'Test_TC_CC_5_2', | ||
'Test_TC_CC_5_3', | ||
'Test_TC_CC_6_1', | ||
'Test_TC_CC_6_2', | ||
'Test_TC_CC_6_3', | ||
'Test_TC_CC_7_1', | ||
'Test_TC_CC_7_2', | ||
'Test_TC_CC_7_3', | ||
'Test_TC_CC_7_4', | ||
'Test_TC_CC_8_1', | ||
]; | ||
|
||
const DeviceManagement = [ | ||
'Test_TC_DM_1_1', | ||
'Test_TC_DM_3_1', | ||
]; | ||
|
||
const FlowMeasurement = [ | ||
'Test_TC_FLW_1_1', | ||
]; | ||
|
||
const OccupancySensing = [ | ||
'Test_TC_OCC_1_1', | ||
]; | ||
|
||
const LevelControl = [ | ||
'Test_TC_LVL_1_1', | ||
'Test_TC_LVL_2_1', | ||
'Test_TC_LVL_3_1', | ||
]; | ||
|
||
const MediaControl = [ | ||
'Test_TC_MC_1_1', | ||
]; | ||
|
||
const OnOff = [ | ||
'Test_TC_OO_1_1', | ||
'Test_TC_OO_2_1', | ||
'Test_TC_OO_2_2', | ||
]; | ||
|
||
const PumpConfigurationControl = [ | ||
'Test_TC_PCC_1_1', | ||
'Test_TC_PCC_2_1', | ||
]; | ||
|
||
const RelativeHumidityMeasurement = [ | ||
'Test_TC_RH_1_1', | ||
]; | ||
|
||
const TemperatureMeasurement = [ | ||
'Test_TC_TM_1_1', | ||
'Test_TC_TM_2_1', | ||
]; | ||
|
||
const Thermostat = [ | ||
'Test_TC_TSTAT_1_1', | ||
]; | ||
|
||
const ThermostatUserConfiguration = [ | ||
'Test_TC_TSUIC_1_1', | ||
'Test_TC_TSUIC_2_1', | ||
]; | ||
|
||
const ThreadNetworkDiagnostics = [ | ||
'Test_TC_DIAGTH_1_1', | ||
]; | ||
|
||
const WindowCovering = [ | ||
'Test_TC_WNCV_1_1', | ||
'Test_TC_WNCV_2_1', | ||
'Test_TC_WNCV_3_1', | ||
'Test_TC_WNCV_3_2', | ||
'Test_TC_WNCV_3_3', | ||
]; | ||
|
||
const TV = [ | ||
'TV_TargetNavigatorCluster', | ||
'TV_AudioOutputCluster', | ||
'TV_ApplicationLauncherCluster', | ||
'TV_KeypadInputCluster', | ||
'TV_AccountLoginCluster', | ||
'TV_WakeOnLanCluster', | ||
'TV_ApplicationBasicCluster', | ||
'TV_MediaPlaybackCluster', | ||
'TV_TvChannelCluster', | ||
'TV_LowPowerCluster', | ||
'TV_MediaInputCluster', | ||
]; | ||
|
||
const Others = [ | ||
'TestCluster', | ||
'TestClusterComplexTypes', | ||
'TestConstraints', | ||
'TestDelayCommands', | ||
'TestDescriptorCluster', | ||
'TestOperationalCredentialsCluster', | ||
]; | ||
|
||
const Subscriptions = [ | ||
'TestSubscribe_OnOff', | ||
]; | ||
|
||
const tests = [ | ||
BinaryInput, // | ||
ColorControl, // | ||
DeviceManagement, // | ||
FlowMeasurement, // | ||
LevelControl, // | ||
MediaControl, // | ||
OccupancySensing, // | ||
OnOff, // | ||
PumpConfigurationControl, // | ||
RelativeHumidityMeasurement, // | ||
TemperatureMeasurement, // | ||
Thermostat, // | ||
ThermostatUserConfiguration, // | ||
ThreadNetworkDiagnostics, // | ||
WindowCovering, // | ||
TV, // | ||
Others, // | ||
Subscriptions, // | ||
]; | ||
return tests.flat(1); | ||
} | ||
|
||
// | ||
// Module exports | ||
// | ||
exports.getTests = getTests; |
This file contains 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
Oops, something went wrong.