| {{> header}} |
| |
| #pragma once |
| |
| #include "TestCommand.h" |
| |
| #include <lib/support/CHIPListUtils.h> |
| |
| {{>test_cluster tests="../linux/apps/app1/ciTests.json" credsIssuerConfigArg=false needsWaitDuration=false}} |
| |
| std::unique_ptr<TestCommand>GetTestCommand(std::string testName) |
| { |
| {{#chip_tests "../linux/apps/app1/ciTests.json" includeAllClusters=true}} |
| if (testName == "{{filename}}") |
| { |
| return std::unique_ptr<{{filename}}Suite>(new {{filename}}Suite()); |
| } |
| {{/chip_tests}} |
| |
| return nullptr; |
| } |
| |
| void PrintTestCommands() |
| { |
| {{#chip_tests "../linux/apps/app1/ciTests.json" includeAllClusters=true}} |
| {{#first}} |
| ChipLogError(chipTool, "Supported commands:"); |
| {{/first}} |
| ChipLogError(chipTool, "\t* {{filename}}"); |
| {{else}} |
| ChipLogError("\t No available commands."); |
| {{/chip_tests}} |
| } |