summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-devtools/python/python3-scapy_2.4.5.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-devtools/python/python3-scapy_2.4.5.bb')
-rw-r--r--meta-networking/recipes-devtools/python/python3-scapy_2.4.5.bb13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-networking/recipes-devtools/python/python3-scapy_2.4.5.bb b/meta-networking/recipes-devtools/python/python3-scapy_2.4.5.bb
index 0f66dfd784..83f6a6026a 100644
--- a/meta-networking/recipes-devtools/python/python3-scapy_2.4.5.bb
+++ b/meta-networking/recipes-devtools/python/python3-scapy_2.4.5.bb
@@ -34,8 +34,21 @@ do_install:append() {
34do_install_ptest() { 34do_install_ptest() {
35 install -m 0644 ${S}/test/regression.uts ${D}${PTEST_PATH} 35 install -m 0644 ${S}/test/regression.uts ${D}${PTEST_PATH}
36 sed -i 's,@PTEST_PATH@,${PTEST_PATH},' ${D}${PTEST_PATH}/run-ptest 36 sed -i 's,@PTEST_PATH@,${PTEST_PATH},' ${D}${PTEST_PATH}/run-ptest
37 install -D -m 0644 ${S}/test/pcaps/bad_rsn_parsing_overrides_ssid.pcap ${D}${PYTHON_SITEPACKAGES_DIR}/test/pcaps/bad_rsn_parsing_overrides_ssid.pcap
38 install -m 0644 ${S}/test/pcaps/macos.pcapng.gz ${D}${PYTHON_SITEPACKAGES_DIR}/test/pcaps/
39
40 # note1: if ipv6 isn't enabled, skip the related test (add '-K ipv6' argument)
41 # note2: to make this test work, your ISP also must support ipv6 - the test is trying
42 # to ping google.com through ipv6.
43 if [ "${@oe.utils.all_distro_features(d, 'ipv6', 'true', 'false')}" = "false" ]; then
44 sed -i 's/UTscapy3/UTscapy3 -K ipv6/g' ${D}${PTEST_PATH}/run-ptest
45 fi
37} 46}
38 47
39RDEPENDS:${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \ 48RDEPENDS:${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \
40 ${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \ 49 ${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \
41 ${PYTHON_PN}-threading ${PYTHON_PN}-numbers" 50 ${PYTHON_PN}-threading ${PYTHON_PN}-numbers"
51
52RDEPENDS:${PN}-ptest += "tshark"
53
54FILES:${PN}-ptest += "${PYTHON_SITEPACKAGES_DIR}/test/pcaps"