summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2021-08-11 17:38:41 +0800
committerKhem Raj <raj.khem@gmail.com>2021-08-11 10:23:54 -0700
commit61638bdba3857825d1306caa67ee58b057d3bbdb (patch)
tree46f322757f0acfe371cc8baa0d4da5413f2a0e86 /meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb
parent7a512dfc24256f86669cd2774191bb91a282b380 (diff)
downloadmeta-openembedded-61638bdba3857825d1306caa67ee58b057d3bbdb.tar.gz
jemalloc: add ptest support
Add ptest support. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb')
-rw-r--r--meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb17
1 files changed, 16 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb
index b191f729a3..b5d53bb112 100644
--- a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb
+++ b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb
@@ -15,14 +15,29 @@ LIC_FILES_CHKSUM = "file://README;md5=6900e4a158982e4c4715bf16aa54fa10"
15 15
16SRC_URI = "git://github.com/jemalloc/jemalloc.git \ 16SRC_URI = "git://github.com/jemalloc/jemalloc.git \
17 file://0001-Makefile.in-make-sure-doc-generated-before-install.patch \ 17 file://0001-Makefile.in-make-sure-doc-generated-before-install.patch \
18 file://run-ptest \
18" 19"
19 20
20SRCREV = "ea6b3e973b477b8061e0076bb257dbd7f3faa756" 21SRCREV = "ea6b3e973b477b8061e0076bb257dbd7f3faa756"
21 22
22S = "${WORKDIR}/git" 23S = "${WORKDIR}/git"
23 24
24inherit autotools 25inherit autotools ptest
25 26
26EXTRA_AUTORECONF += "--exclude=autoheader" 27EXTRA_AUTORECONF += "--exclude=autoheader"
27 28
28EXTRA_OECONF:append:libc-musl = " --with-jemalloc-prefix=je_" 29EXTRA_OECONF:append:libc-musl = " --with-jemalloc-prefix=je_"
30
31do_compile_ptest() {
32 oe_runmake tests
33}
34
35do_install_ptest() {
36 install -d ${D}${PTEST_PATH}/tests
37 subdirs="test/unit test/integration test/stress "
38 for tooltest in ${subdirs}
39 do
40 cp -r ${B}/${tooltest} ${D}${PTEST_PATH}/tests
41 done
42 find ${D}${PTEST_PATH}/tests \( -name "*.d" -o -name "*.o" \) -exec rm -f {} \;
43}