diff options
author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-03-30 13:56:14 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-30 11:44:47 -0700 |
commit | ac867f6fa6273ca3361cc6b5b07ca23ef6d25ae6 (patch) | |
tree | 360edfb89fb301a47d80ad00532d2b89c624dec8 /meta-python/recipes-devtools/python/python-sqlparse.inc | |
parent | 0b5e3ef98a60b777cc7b4f831f5be6ee5a5113f1 (diff) | |
download | meta-openembedded-ac867f6fa6273ca3361cc6b5b07ca23ef6d25ae6.tar.gz |
python3-sqlparse: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-sqlparse.inc')
-rw-r--r-- | meta-python/recipes-devtools/python/python-sqlparse.inc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/meta-python/recipes-devtools/python/python-sqlparse.inc b/meta-python/recipes-devtools/python/python-sqlparse.inc index 473232d652..45a1e56775 100644 --- a/meta-python/recipes-devtools/python/python-sqlparse.inc +++ b/meta-python/recipes-devtools/python/python-sqlparse.inc | |||
@@ -4,7 +4,9 @@ SECTION = "devel/python" | |||
4 | LICENSE = "BSD" | 4 | LICENSE = "BSD" |
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2b136f573f5386001ea3b7b9016222fc" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2b136f573f5386001ea3b7b9016222fc" |
6 | 6 | ||
7 | SRC_URI += "file://0001-sqlparse-change-shebang-to-python3.patch" | 7 | SRC_URI += "file://0001-sqlparse-change-shebang-to-python3.patch \ |
8 | file://run-ptest \ | ||
9 | " | ||
8 | 10 | ||
9 | SRC_URI[md5sum] = "423047887a3590b04dd18f8caf843a2f" | 11 | SRC_URI[md5sum] = "423047887a3590b04dd18f8caf843a2f" |
10 | SRC_URI[sha256sum] = "e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d12c548" | 12 | SRC_URI[sha256sum] = "e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d12c548" |
@@ -12,4 +14,14 @@ SRC_URI[sha256sum] = "e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d | |||
12 | export BUILD_SYS | 14 | export BUILD_SYS |
13 | export HOST_SYS | 15 | export HOST_SYS |
14 | 16 | ||
15 | inherit pypi | 17 | inherit pypi ptest |
18 | |||
19 | RDEPENDS_${PN}-ptest += " \ | ||
20 | ${PYTHON_PN}-pytest \ | ||
21 | ${PYTHON_PN}-unixadmin \ | ||
22 | " | ||
23 | |||
24 | do_install_ptest() { | ||
25 | install -d ${D}${PTEST_PATH}/tests | ||
26 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
27 | } | ||