mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-31 12:50:19 +00:00
scapy: restore ptest by going to github directly
The pypi package removed the tests so go to the git repo directly. Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
UTscapy -t regression.uts -f text -l -C \
|
||||||
|
-o @PTEST_PATH@/scapy_ptest_$(date +%Y%m%d-%H%M%S).log \
|
||||||
|
2>&1 | sed -e 's/^passed None/PASS:/' -e 's/^failed None/FAIL:/'
|
||||||
@@ -5,10 +5,12 @@ LICENSE = "GPLv2"
|
|||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://bin/scapy;beginline=9;endline=13;md5=1d5249872cc54cd4ca3d3879262d0c69"
|
LIC_FILES_CHKSUM = "file://bin/scapy;beginline=9;endline=13;md5=1d5249872cc54cd4ca3d3879262d0c69"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "e6a03d8c924a6bbde1e86fc58bd2b9d6"
|
S = "${WORKDIR}/git"
|
||||||
SRC_URI[sha256sum] = "1baa048936207ceb1a4281a0e1e3b4317667c754872a0bb4734c5213c468e86a"
|
|
||||||
|
|
||||||
inherit pypi
|
SRCREV = "bad14cb1a5aee29f8107fbe8ad008d4645f14da7"
|
||||||
|
SRC_URI = "git://github.com/secdev/scapy.git"
|
||||||
|
|
||||||
|
inherit ptest
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
if [ "${PYTHON_PN}" = "python3" ]; then
|
if [ "${PYTHON_PN}" = "python3" ]; then
|
||||||
@@ -17,6 +19,11 @@ do_install_append() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_install_ptest() {
|
||||||
|
install -m 0644 ${S}/test/regression.uts ${D}${PTEST_PATH}
|
||||||
|
sed -i 's,@PTEST_PATH@,${PTEST_PATH},' ${D}${PTEST_PATH}/run-ptest
|
||||||
|
}
|
||||||
|
|
||||||
RDEPENDS_${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \
|
RDEPENDS_${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \
|
||||||
${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \
|
${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \
|
||||||
${PYTHON_PN}-threading ${PYTHON_PN}-numbers ${PYTHON_PN}-pycrypto"
|
${PYTHON_PN}-threading ${PYTHON_PN}-numbers ${PYTHON_PN}-pycrypto"
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
inherit setuptools
|
inherit setuptools
|
||||||
require python-scapy.inc
|
require python-scapy.inc
|
||||||
|
|
||||||
|
SRC_URI += "file://run-ptest"
|
||||||
|
|
||||||
RDEPENDS_${PN} += "${PYTHON_PN}-subprocess"
|
RDEPENDS_${PN} += "${PYTHON_PN}-subprocess"
|
||||||
|
|||||||
@@ -1,2 +1,5 @@
|
|||||||
inherit setuptools3
|
inherit setuptools3
|
||||||
require python-scapy.inc
|
require python-scapy.inc
|
||||||
|
|
||||||
|
SRC_URI += "file://run-ptest"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user