-
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.
[YAML] Update scripts/tools/zap_regen_all.py to be able to generate o…
…nly the test targets if needed (#15246) * [YAML] Update chip-tool templates in such a way that tests can be generated alone * [YAML] Update src/darwin templates in such a way that tests can be generated alone * [YAML] Update examples/placeholder dedicated tests templates with the new paths * Update scripts/tools/zap_regen_all.py to be able to generate only the test targets if needed
- Loading branch information
1 parent
d751300
commit 2188514
Showing
21 changed files
with
219 additions
and
85 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
File renamed without changes.
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,26 @@ | ||
/* | ||
* | ||
* Copyright (c) 2022 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 utf8StringLength(str) | ||
{ | ||
return new TextEncoder().encode(str).length | ||
} | ||
|
||
// | ||
// Module exports | ||
// | ||
exports.utf8StringLength = utf8StringLength; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,40 @@ | ||
{ | ||
"name": "CHIP Tool Tests templates", | ||
"version": "chip-v1", | ||
"helpers": [ | ||
"../../../../src/app/zap-templates/partials/helper.js", | ||
"../../../../src/app/zap-templates/common/StringHelper.js", | ||
"../../../../src/app/zap-templates/templates/app/helper.js", | ||
"../../../../src/app/zap-templates/templates/chip/helper.js", | ||
"../../../../src/app/zap-templates/common/ClusterTestGeneration.js", | ||
"../helper.js", | ||
"helper.js", | ||
"tests.js" | ||
], | ||
"override": "../../../../src/app/zap-templates/common/override.js", | ||
"partials": [ | ||
{ | ||
"name": "header", | ||
"path": "../../../../src/app/zap-templates/partials/header.zapt" | ||
}, | ||
{ | ||
"name": "test_cluster", | ||
"path": "partials/test_cluster.zapt" | ||
}, | ||
{ | ||
"name": "commandValue", | ||
"path": "partials/command_value.zapt" | ||
}, | ||
{ | ||
"name": "valueEquals", | ||
"path": "partials/value_equals.zapt" | ||
} | ||
], | ||
"templates": [ | ||
{ | ||
"path": "commands.zapt", | ||
"name": "Tests Commands header", | ||
"output": "test/Commands.h" | ||
} | ||
] | ||
} |
File renamed without changes.
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
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
File renamed without changes.
Oops, something went wrong.