diff options
author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-03-20 10:22:05 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-20 07:44:29 -0700 |
commit | 380bd91766eb32a93191b079a1388fe01a25aacf (patch) | |
tree | 2470e53de3ea35f995107d9a3e7d7f4a0b04dc42 | |
parent | 5c474d09a8497ee0c8dd2561311d614e7cc05c44 (diff) | |
download | meta-openembedded-380bd91766eb32a93191b079a1388fe01a25aacf.tar.gz |
python3-xxhash: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-python/recipes-devtools/python/python-xxhash.inc | 15 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-xxhash/run-ptest | 3 |
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-xxhash.inc b/meta-python/recipes-devtools/python/python-xxhash.inc index 80f5e9c7f2..c02c29eb78 100644 --- a/meta-python/recipes-devtools/python/python-xxhash.inc +++ b/meta-python/recipes-devtools/python/python-xxhash.inc | |||
@@ -5,3 +5,18 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5a8d76283514a1b7e6a414aba38629b5" | |||
5 | 5 | ||
6 | SRC_URI[md5sum] = "ce9cbbcc89620fd47a2468badd08dcf0" | 6 | SRC_URI[md5sum] = "ce9cbbcc89620fd47a2468badd08dcf0" |
7 | SRC_URI[sha256sum] = "8b6b1afe7731d7d9cbb0398b4a811ebb5e6be5c174f72c68abf81f919a435de9" | 7 | SRC_URI[sha256sum] = "8b6b1afe7731d7d9cbb0398b4a811ebb5e6be5c174f72c68abf81f919a435de9" |
8 | |||
9 | SRC_URI += " \ | ||
10 | file://run-ptest \ | ||
11 | " | ||
12 | |||
13 | inherit ptest | ||
14 | |||
15 | RDEPENDS_${PN}-ptest += " \ | ||
16 | ${PYTHON_PN}-pytest \ | ||
17 | " | ||
18 | |||
19 | do_install_ptest() { | ||
20 | install -d ${D}${PTEST_PATH}/tests | ||
21 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
22 | } | ||
diff --git a/meta-python/recipes-devtools/python/python3-xxhash/run-ptest b/meta-python/recipes-devtools/python/python3-xxhash/run-ptest new file mode 100644 index 0000000000..6a26348b18 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-xxhash/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest tests/test.py | ||