We (Linaro) started exploring options to run packetdrill on Linux kernel for
improving network subsystem test coverage. The following results obtained
on arm64 and x86_64 architectures after installing required packages on the
debian rootfs. The run time of testing is less than a minute.
Full run test log attached to this email.
Please suggest ways to improve the number of PASS.
Our plan is to add the packetdrill test suite to LKFT [1] test plan.
arm64:
Ran 234 tests: 199 passing, 35 failing, 0 timed out (36.00 sec): .
x86_64:
Ran 234 tests: 192 passing, 42 failing, 0 timed out (23.14 sec): .
steps:
- apt-get update
- apt-get -y install build-essential python git python3 automake
- apt-get -y install iproute2 net-tools ethtool bison flex
- git clone https://github.com/google/packetdrill
- cd packetdrill/gtests/net/packetdrill/
- ./configure
- make
- cd ../
- ./packetdrill/run_all.py -v -l -L
Errors list:
-------------
- error handling packet: live packet payload: expected 1000 bytes vs
actual 2000 bytes
- runtime error in socket call: Expected non-negative result but got
-1 with errno 93 (Protocol not supported)
- timing error: expected system call return at 0.300556 sec but
happened at 0.310599 sec; tolerance 0.010000 sec
- sysctl: cannot stat /proc/sys/net/ipv4/tcp_syncookies: No such file
or directory
- comment CONFIG_SYN_COOKIES not enabled on arm64 but set on x86_64.
- sysctl: cannot stat /proc/sys/net/ipv4/tcp_syncookies: No such file
or directory
- cwnd-moderation-ecn-enter-cwr-no-moderation-700.pkt:24: error in Python code
Traceback (most recent call last):
File \"/tmp/code_nVK70l\", line 195, in <module>
assert tcpi_snd_cwnd == 4, tcpi_snd_cwnd
AssertionError: 5
cwnd-moderation-ecn-enter-cwr-no-moderation-700.pkt: error executing
code: '/usr/bin/python' returned non-zero status 1
[1] https://lkft.linaro.org/tests/
--
Linaro LKFT
https://lkft.linaro.org