diff options
| author | Wentao Zhang <wentao.zhang@windriver.com> | 2023-04-03 16:16:35 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-04-04 13:39:46 -0700 |
| commit | b3274b4e90fad106e2e76b48afb866d81170bd6f (patch) | |
| tree | 24ed814e071fae475b7dd406159bba7423c7d6d6 /meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb | |
| parent | 356b224344ecb5d509318b9dd6a67bab6f03a8ff (diff) | |
| download | meta-openembedded-b3274b4e90fad106e2e76b48afb866d81170bd6f.tar.gz | |
jemalloc: include the missing shell scripts and source the corresponds shell scripts for some test cases.
The test cases in jemalloc require the appropriate value to be exported
to MALLOC_CONF, which is stored in shell scripts.
The privious script just ran the test cases without exporting value, causing
the tests to fail.
Include the missing shell scripts, and source them before running the test
cases now.
Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb index 950b64ee9b..9ad83261ef 100644 --- a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb +++ b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb | |||
| @@ -42,10 +42,13 @@ do_compile_ptest() { | |||
| 42 | 42 | ||
| 43 | do_install_ptest() { | 43 | do_install_ptest() { |
| 44 | install -d ${D}${PTEST_PATH}/tests | 44 | install -d ${D}${PTEST_PATH}/tests |
| 45 | subdirs="test/unit test/integration test/stress " | 45 | subdirs="unit integration stress " |
| 46 | for tooltest in ${subdirs} | 46 | for tooltest in ${subdirs} |
| 47 | do | 47 | do |
| 48 | cp -r ${B}/${tooltest} ${D}${PTEST_PATH}/tests | 48 | cp -r ${B}/test/${tooltest} ${D}${PTEST_PATH}/tests |
| 49 | if find ${S}/test/${tooltest}/ -name '*.sh' -print -quit | grep -q .; then | ||
| 50 | cp ${S}/test/${tooltest}/*.sh ${D}${PTEST_PATH}/tests/${tooltest} | ||
| 51 | fi | ||
| 49 | done | 52 | done |
| 50 | find ${D}${PTEST_PATH}/tests \( -name "*.d" -o -name "*.o" \) -exec rm -f {} \; | 53 | find ${D}${PTEST_PATH}/tests \( -name "*.d" -o -name "*.o" \) -exec rm -f {} \; |
| 51 | } | 54 | } |
