python3-scapy: fix ptests

1. Install missing test files
2. Enable network access by setting a nameserver in resolv.conf
   because some tests require this
3. One test tries to ping Google through IPv6 - this test requires
   ipv6 DISTRO_FEATURE. In case ipv6 is not enabled, skip this test
   from the run-ptest script.

NB: the last mentioned test to work  also requires IPv6 support from
your ISP. My ISP is IPv4-only, and I couldn't try it out. The above
comes from my reading of the testcode.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Gyorgy Sarvari
2025-10-26 21:51:17 +01:00
committed by Khem Raj
parent 020d38d39a
commit 237efae216
3 changed files with 20 additions and 1 deletions
@@ -20,6 +20,7 @@ PTESTS_FAST_META_NETWORKING = "\
mbedtls \
openhpi \
openl2tp \
python3-scapy \
squid \
tcpdump \
wolfssl \
@@ -41,7 +42,6 @@ PTESTS_SLOW_META_NETWORKING = "\
PTESTS_PROBLEMS_META_NETWORKING = "\
nftables \
python3-scapy \
"
PTESTS_PROBLEMS_META_NETWORKING:append:libc-musl = "\
libtalloc \