Skip to content

Commit

Permalink
Add simulated test dm (#13675)
Browse files Browse the repository at this point in the history
* Add new Simulated Test.

* Generated code.
  • Loading branch information
Josh V [Apple] authored Jan 21, 2022
1 parent 7abbe5f commit a5a7d92
Show file tree
Hide file tree
Showing 5 changed files with 384 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/placeholder/linux/apps/app1/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function getTests()
{
const tests = [
"Test_TC_DM_1_3_Simulated",
"Test_TC_DM_3_3_Simulated",
];

return tests.join(', ');
Expand Down
3 changes: 3 additions & 0 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ PICS:
- label: "Does the device support discovery over WiFi?"
id: WIFI

- label: "Does the device support discover over THREAD"
id: THREAD

- label: "Does the device support manufacturing date"
id: MANF_DATE

Expand Down
28 changes: 28 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DM_3_3_Simulated.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 10.3.3. [TC-DM-3.3] Network Commissioning Commands [DUT - Commissioner]

config:
cluster: "Network Commissioning"
endpoint: 0

tests:
- label: "Wait for the device to be commissioned"
cluster: "DelayCommands"
command: "WaitForCommissioning"

- label: "Wait for Scan Network Command"
wait: "ScanNetworks"

- label: "Wait for Add Wifi Network Command"
wait: "AddOrUpdateWiFiNetwork"
PICS: WIFI

- label: "Wait for Update Thread Network Command"
wait: "AddOrUpdateThreadNetwork"
PICS: THREAD

- label: "Wait for Enable Network Command"
wait: "ConnectNetwork"

- label: "Wait for Remove Network Command"
wait: "RemoveNetwork"
PICS: WIFI | THREAD
176 changes: 176 additions & 0 deletions zzz_generated/placeholder/app1/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a5a7d92

Please sign in to comment.