mirror of
https://github.com/espressif/openthread.git
synced 2026-08-13 14:17:47 +00:00
[github-actions] add more packet verification tests (#6508)
Packet verification of some test scripts were not executed. This commit runs these tests in packet verification checks.
This commit is contained in:
@@ -126,6 +126,7 @@ jobs:
|
||||
REFERENCE_DEVICE: 1
|
||||
THREAD_VERSION: 1.1
|
||||
VIRTUAL_TIME: 1
|
||||
MULTIPLY: 3
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@@ -143,10 +144,7 @@ jobs:
|
||||
./script/test get_thread_wireshark
|
||||
- name: Run
|
||||
run: |
|
||||
for i in {1..10}
|
||||
do
|
||||
./script/test cert_suite ./tests/scripts/thread-cert/Cert_*.py
|
||||
done
|
||||
./script/test cert_suite ./tests/scripts/thread-cert/Cert_*.py ./tests/scripts/thread-cert/test_*.py
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: ${{ failure() }}
|
||||
with:
|
||||
|
||||
@@ -170,6 +170,7 @@ jobs:
|
||||
VIRTUAL_TIME: 1
|
||||
PACKET_VERIFICATION: 1
|
||||
THREAD_VERSION: 1.2
|
||||
MULTIPLY: 3
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@@ -187,10 +188,7 @@ jobs:
|
||||
./script/test get_thread_wireshark
|
||||
- name: Run
|
||||
run: |
|
||||
for i in {1..3}
|
||||
do
|
||||
./script/test cert_suite ./tests/scripts/thread-cert/Cert_*.py
|
||||
done
|
||||
./script/test cert_suite ./tests/scripts/thread-cert/Cert_*.py ./tests/scripts/thread-cert/test_*.py
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: ${{ failure() }}
|
||||
with:
|
||||
|
||||
@@ -197,19 +197,6 @@ class TestPing(thread_cert.TestCase):
|
||||
.filter_ping_request() \
|
||||
.must_next()
|
||||
|
||||
# TODO: Enable this section
|
||||
# pkts.filter_wpan_src64(vars['Router_3']) \
|
||||
# .filter_ipv6_dst(_pkt.ipv6.src) \
|
||||
# .filter_ping_reply(identifier=_pkt.icmpv6.echo.identifier) \
|
||||
# .must_not_next()
|
||||
|
||||
# 6. Router_2 pings Router_3's RLOC from an non-existent address. The
|
||||
# ping should fail.
|
||||
_pkt = pkts.filter_wpan_src64(vars['Router_2']) \
|
||||
.filter_ipv6_src_dst('1::1', vars['Router_3_RLOC']) \
|
||||
.filter_ping_request() \
|
||||
.must_not_next()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user