diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r-- | meta-python/recipes-devtools/python/python-pyasn1.inc | 15 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pyasn1/run-ptest | 3 |
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-pyasn1.inc b/meta-python/recipes-devtools/python/python-pyasn1.inc index d74c2fec69..d9557646a0 100644 --- a/meta-python/recipes-devtools/python/python-pyasn1.inc +++ b/meta-python/recipes-devtools/python/python-pyasn1.inc | |||
@@ -14,3 +14,18 @@ RDEPENDS_${PN}_class-target += " \ | |||
14 | " | 14 | " |
15 | 15 | ||
16 | BBCLASSEXTEND = "native nativesdk" | 16 | BBCLASSEXTEND = "native nativesdk" |
17 | |||
18 | inherit ptest | ||
19 | |||
20 | SRC_URI += " \ | ||
21 | file://run-ptest \ | ||
22 | " | ||
23 | |||
24 | RDEPENDS_${PN}-ptest += " \ | ||
25 | ${PYTHON_PN}-pytest \ | ||
26 | " | ||
27 | |||
28 | do_install_ptest() { | ||
29 | install -d ${D}${PTEST_PATH}/tests | ||
30 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
31 | } | ||
diff --git a/meta-python/recipes-devtools/python/python3-pyasn1/run-ptest b/meta-python/recipes-devtools/python/python3-pyasn1/run-ptest new file mode 100644 index 0000000000..5cec711696 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pyasn1/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest | ||