mirror of
https://github.com/espressif/openthread.git
synced 2026-09-14 13:10:08 +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
|
REFERENCE_DEVICE: 1
|
||||||
THREAD_VERSION: 1.1
|
THREAD_VERSION: 1.1
|
||||||
VIRTUAL_TIME: 1
|
VIRTUAL_TIME: 1
|
||||||
|
MULTIPLY: 3
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -143,10 +144,7 @@ jobs:
|
|||||||
./script/test get_thread_wireshark
|
./script/test get_thread_wireshark
|
||||||
- name: Run
|
- name: Run
|
||||||
run: |
|
run: |
|
||||||
for i in {1..10}
|
./script/test cert_suite ./tests/scripts/thread-cert/Cert_*.py ./tests/scripts/thread-cert/test_*.py
|
||||||
do
|
|
||||||
./script/test cert_suite ./tests/scripts/thread-cert/Cert_*.py
|
|
||||||
done
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ jobs:
|
|||||||
VIRTUAL_TIME: 1
|
VIRTUAL_TIME: 1
|
||||||
PACKET_VERIFICATION: 1
|
PACKET_VERIFICATION: 1
|
||||||
THREAD_VERSION: 1.2
|
THREAD_VERSION: 1.2
|
||||||
|
MULTIPLY: 3
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -187,10 +188,7 @@ jobs:
|
|||||||
./script/test get_thread_wireshark
|
./script/test get_thread_wireshark
|
||||||
- name: Run
|
- name: Run
|
||||||
run: |
|
run: |
|
||||||
for i in {1..3}
|
./script/test cert_suite ./tests/scripts/thread-cert/Cert_*.py ./tests/scripts/thread-cert/test_*.py
|
||||||
do
|
|
||||||
./script/test cert_suite ./tests/scripts/thread-cert/Cert_*.py
|
|
||||||
done
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -197,19 +197,6 @@ class TestPing(thread_cert.TestCase):
|
|||||||
.filter_ping_request() \
|
.filter_ping_request() \
|
||||||
.must_next()
|
.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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|||||||
Reference in New Issue
Block a user