Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | SUMMARY = "Valgrind memory debugger and instrumentation framework" |
| 2 | HOMEPAGE = "http://valgrind.org/" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 3 | DESCRIPTION = "Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail." |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 4 | BUGTRACKER = "http://valgrind.org/support/bug_reports.html" |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 5 | LICENSE = "GPLv2 & GPLv2+ & BSD-3-Clause" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 7 | file://include/pub_tool_basics.h;beginline=6;endline=29;md5=41c410e8d3f305aee7aaa666b2e4f366 \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 8 | file://include/valgrind.h;beginline=1;endline=56;md5=ad3b317f3286b6b704575d9efe6ca5df \ |
| 9 | file://COPYING.DOCS;md5=24ea4c7092233849b4394699333b5c56" |
| 10 | |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 11 | DEPENDS = " \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 12 | ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'boost', '', d)} \ |
| 13 | " |
| 14 | |
| 15 | SRC_URI = "https://sourceware.org/pub/valgrind/valgrind-${PV}.tar.bz2 \ |
| 16 | file://fixed-perl-path.patch \ |
| 17 | file://Added-support-for-PPC-instructions-mfatbu-mfatbl.patch \ |
| 18 | file://run-ptest \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 19 | file://remove-for-aarch64 \ |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 20 | file://remove-for-all \ |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 21 | file://taskset_nondeterministic_tests \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 22 | file://0004-Fix-out-of-tree-builds.patch \ |
| 23 | file://0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch \ |
| 24 | file://0001-Remove-tests-that-fail-to-build-on-some-PPC32-config.patch \ |
| 25 | file://use-appropriate-march-mcpu-mfpu-for-ARM-test-apps.patch \ |
| 26 | file://avoid-neon-for-targets-which-don-t-support-it.patch \ |
| 27 | file://valgrind-make-ld-XXX.so-strlen-intercept-optional.patch \ |
| 28 | file://0001-makefiles-Drop-setting-mcpu-to-cortex-a8-on-arm-arch.patch \ |
| 29 | file://0001-str_tester.c-Limit-rawmemchr-test-to-glibc.patch \ |
| 30 | file://0001-sigqueue-Rename-_sifields-to-__si_fields-on-musl.patch \ |
| 31 | file://0002-context-APIs-are-not-available-on-musl.patch \ |
| 32 | file://0003-correct-include-directive-path-for-config.h.patch \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 33 | file://0005-tc20_verifywrap.c-Fake-__GLIBC_PREREQ-with-musl.patch \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 34 | file://0001-memcheck-arm64-Define-__THROW-if-not-already-defined.patch \ |
| 35 | file://0002-memcheck-x86-Define-__THROW-if-not-defined.patch \ |
| 36 | file://0003-tests-seg_override-Replace-__modify_ldt-with-syscall.patch \ |
| 37 | file://0001-fix-opcode-not-supported-on-mips32-linux.patch \ |
| 38 | file://0001-Guard-against-__GLIBC_PREREQ-for-musl-libc.patch \ |
| 39 | file://0001-Make-local-functions-static-to-avoid-assembler-error.patch \ |
| 40 | file://0001-Return-a-valid-exit_code-from-vg_regtest.patch \ |
| 41 | file://0001-valgrind-filter_xml_frames-do-not-filter-usr.patch \ |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 42 | file://0001-memcheck-vgtests-remove-fullpath-after-flags.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 43 | file://s390x_vec_op_t.patch \ |
| 44 | file://0001-none-tests-fdleak_cmsg.stderr.exp-adjust-tmp-paths.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 45 | file://0001-memcheck-tests-Fix-timerfd-syscall-test.patch \ |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 46 | file://0001-Add-missing-musl.supp.patch \ |
| 47 | file://0001-drd-tests-swapcontext-Add-SIGALRM-handler-to-avoid-s.patch \ |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 48 | file://6da22a4d246519cd1a638cfc7eff00cdd74413c4.patch \ |
| 49 | file://200b6a5a0ea3e1e154663b0fc575bfe2becf177d.patch \ |
| 50 | file://a1364805fc74b5690f763033c0c9b43f27613572.patch \ |
| 51 | file://52ed51fc35f8a6148c2940eb46932b02dd3b9b23.patch \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 52 | " |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 53 | SRC_URI[md5sum] = "afe11b5572c3121a781433b7c0ab741b" |
| 54 | SRC_URI[sha256sum] = "ad3aec668e813e40f238995f60796d9590eee64a16dff88421430630e69285a2" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 55 | UPSTREAM_CHECK_REGEX = "valgrind-(?P<pver>\d+(\.\d+)+)\.tar" |
| 56 | |
| 57 | COMPATIBLE_HOST = '(i.86|x86_64|arm|aarch64|mips|powerpc|powerpc64).*-linux' |
| 58 | |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 59 | # patch 0001-memcheck-vgtests-remove-fullpath-after-flags.patch removes relative path |
| 60 | # argument. Change expected stderr files accordingly. |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 61 | do_patch:append() { |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 62 | bb.build.exec_func('do_sed_paths', d) |
| 63 | } |
| 64 | |
| 65 | do_sed_paths() { |
| 66 | sed -i -e 's|tests/||' ${S}/memcheck/tests/badfree3.stderr.exp |
| 67 | sed -i -e 's|tests/||' ${S}/memcheck/tests/varinfo5.stderr.exp |
| 68 | } |
| 69 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 70 | # valgrind supports armv7 and above |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 71 | COMPATIBLE_HOST:armv4 = 'null' |
| 72 | COMPATIBLE_HOST:armv5 = 'null' |
| 73 | COMPATIBLE_HOST:armv6 = 'null' |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 74 | |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 75 | # valgrind fails with powerpc soft-float |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 76 | COMPATIBLE_HOST:powerpc = "${@bb.utils.contains('TARGET_FPU', 'soft', 'null', '.*-linux', d)}" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame] | 77 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 78 | # X32 isn't supported by valgrind at this time |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 79 | COMPATIBLE_HOST:linux-gnux32 = 'null' |
| 80 | COMPATIBLE_HOST:linux-muslx32 = 'null' |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 81 | |
| 82 | # Disable for some MIPS variants |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 83 | COMPATIBLE_HOST:mipsarchr6 = 'null' |
| 84 | COMPATIBLE_HOST:linux-gnun32 = 'null' |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 85 | |
| 86 | # Disable for powerpc64 with musl |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 87 | COMPATIBLE_HOST:libc-musl:powerpc64 = 'null' |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 88 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 89 | # brokenseip is unfortunately required by ptests to pass |
| 90 | inherit autotools-brokensep ptest multilib_header |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 91 | |
| 92 | EXTRA_OECONF = "--enable-tls --without-mpicc" |
| 93 | EXTRA_OECONF += "${@['--enable-only32bit','--enable-only64bit'][d.getVar('SITEINFO_BITS') != '32']}" |
| 94 | |
| 95 | # valgrind checks host_cpu "armv7*)", so we need to over-ride the autotools.bbclass default --host option |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 96 | EXTRA_OECONF:append:arm = " --host=armv7${HOST_VENDOR}-${HOST_OS}" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 97 | |
| 98 | EXTRA_OEMAKE = "-w" |
| 99 | |
| 100 | CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl'" |
| 101 | |
| 102 | # valgrind likes to control its own optimisation flags. It generally defaults |
| 103 | # to -O2 but uses -O0 for some specific test apps etc. Passing our own flags |
| 104 | # (via CFLAGS) means we interfere with that. Only pass DEBUG_FLAGS to it |
| 105 | # which fixes build path issue in DWARF. |
| 106 | SELECTED_OPTIMIZATION = "${DEBUG_FLAGS}" |
| 107 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 108 | do_configure:prepend () { |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 109 | rm -rf ${S}/config.h |
| 110 | sed -i -e 's:$(abs_top_builddir):$(pkglibdir)/ptest:g' ${S}/none/tests/Makefile.am |
| 111 | sed -i -e 's:$(top_builddir):$(pkglibdir)/ptest:g' ${S}/memcheck/tests/Makefile.am |
| 112 | } |
| 113 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 114 | do_install:append () { |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 115 | install -m 644 ${B}/default.supp ${D}/${libexecdir}/valgrind/ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 116 | oe_multilib_header valgrind/config.h |
| 117 | } |
| 118 | |
| 119 | VALGRINDARCH ?= "${TARGET_ARCH}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 120 | VALGRINDARCH:aarch64 = "arm64" |
| 121 | VALGRINDARCH:x86-64 = "amd64" |
| 122 | VALGRINDARCH:x86 = "x86" |
| 123 | VALGRINDARCH:mips = "mips32" |
| 124 | VALGRINDARCH:mipsel = "mips32" |
| 125 | VALGRINDARCH:mips64el = "mips64" |
| 126 | VALGRINDARCH:powerpc = "ppc" |
| 127 | VALGRINDARCH:powerpc64 = "ppc64" |
| 128 | VALGRINDARCH:powerpc64le = "ppc64le" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 129 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 130 | INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${libexecdir}/valgrind/vgpreload_memcheck-${VALGRINDARCH}-linux.so" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 131 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 132 | RDEPENDS:${PN} += "perl" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 133 | |
| 134 | # valgrind needs debug information for ld.so at runtime in order to |
| 135 | # redirect functions like strlen. |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 136 | RRECOMMENDS:${PN} += "${TCLIBC}-dbg" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 137 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 138 | RDEPENDS:${PN}-ptest += " bash coreutils curl file \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 139 | gdb libgomp \ |
| 140 | perl \ |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 141 | perl-module-file-basename perl-module-file-glob perl-module-getopt-long \ |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 142 | perl-module-overloading perl-module-cwd perl-module-ipc-open3 \ |
| 143 | perl-module-carp perl-module-symbol \ |
| 144 | procps sed ${PN}-dbg ${PN}-src ${TCLIBC}-src gcc-runtime-dbg" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 145 | RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-utils" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 146 | |
| 147 | # One of the tests contains a bogus interpreter path on purpose. |
| 148 | # Skip file dependency check |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 149 | SKIP_FILEDEPS:${PN}-ptest = '1' |
| 150 | INSANE_SKIP:${PN}-ptest = "debug-deps" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 151 | |
| 152 | do_compile_ptest() { |
| 153 | oe_runmake check |
| 154 | } |
| 155 | |
| 156 | do_install_ptest() { |
| 157 | chmod +x ${B}/tests/vg_regtest |
| 158 | |
| 159 | # The test application binaries are not automatically installed. |
| 160 | # Grab them from the build directory. |
| 161 | # |
| 162 | # The regression tests require scripts and data files that are not |
| 163 | # copied to the build directory. They must be copied from the |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 164 | # source directory. |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 165 | saved_dir=$PWD |
| 166 | for parent_dir in ${S} ${B} ; do |
| 167 | cd $parent_dir |
| 168 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 169 | subdirs=" \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 170 | .in_place \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 171 | cachegrind/tests \ |
| 172 | callgrind/tests \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 173 | dhat/tests \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 174 | drd/tests \ |
| 175 | gdbserver_tests \ |
| 176 | helgrind/tests \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 177 | lackey/tests \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 178 | massif/tests \ |
| 179 | memcheck/tests \ |
| 180 | none/tests \ |
| 181 | tests \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 182 | exp-bbv/tests \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 183 | " |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 184 | # Get the vg test scripts, filters, and expected files |
| 185 | for dir in $subdirs ; do |
| 186 | find $dir | cpio -pvdu ${D}${PTEST_PATH} |
| 187 | done |
| 188 | cd $saved_dir |
| 189 | done |
| 190 | |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 191 | # The scripts reference config.h so add it to the top ptest dir. |
| 192 | cp ${B}/config.h ${D}${PTEST_PATH} |
| 193 | install -D ${WORKDIR}/remove-for-aarch64 ${D}${PTEST_PATH} |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 194 | install -D ${WORKDIR}/remove-for-all ${D}${PTEST_PATH} |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 195 | install -D ${WORKDIR}/taskset_nondeterministic_tests ${D}${PTEST_PATH} |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 196 | |
| 197 | # Add an executable need by none/tests/bigcode |
| 198 | mkdir ${D}${PTEST_PATH}/perf |
| 199 | cp ${B}/perf/bigcode ${D}${PTEST_PATH}/perf |
| 200 | |
| 201 | # Add an executable needed by memcheck/tests/vcpu_bz2 |
| 202 | cp ${B}/perf/bz2 ${D}${PTEST_PATH}/perf |
| 203 | |
| 204 | # Make the ptest dir look like the top level valgrind src dir |
| 205 | # This is checked by the gdbserver_tests/make_local_links script |
| 206 | mkdir ${D}${PTEST_PATH}/coregrind |
| 207 | cp ${B}/coregrind/vgdb ${D}${PTEST_PATH}/coregrind |
| 208 | |
| 209 | # Add an executable needed by massif tests |
| 210 | cp ${B}/massif/ms_print ${D}${PTEST_PATH}/massif/ms_print |
| 211 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 212 | find ${D}${PTEST_PATH} \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 213 | \( \ |
| 214 | -name "Makefile*" \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 215 | -o -name "*.o" \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 216 | \) \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 217 | -exec rm {} \; |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 218 | |
| 219 | # These files need to be newer so touch them. |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 220 | touch ${D}${PTEST_PATH}/cachegrind/tests/a.c -r ${D}${PTEST_PATH}/cachegrind/tests/cgout-test |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 221 | |
| 222 | # find *_annotate in ${bindir} for yocto build |
| 223 | sed -i s:\.\./\.\./cachegrind/cg_annotate:${bindir}/cg_annotate: ${D}${PTEST_PATH}/cachegrind/tests/ann1.vgtest |
| 224 | sed -i s:\.\./\.\./cachegrind/cg_annotate:${bindir}/cg_annotate: ${D}${PTEST_PATH}/cachegrind/tests/ann2.vgtest |
| 225 | |
| 226 | sed -i s:\.\./\.\./callgrind/callgrind_annotate:${bindir}/callgrind_annotate: ${D}${PTEST_PATH}/callgrind/tests/ann1.vgtest |
| 227 | sed -i s:\.\./\.\./callgrind/callgrind_annotate:${bindir}/callgrind_annotate: ${D}${PTEST_PATH}/callgrind/tests/ann2.vgtest |
| 228 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 229 | # point the expanded @abs_top_builddir@ of the host to PTEST_PATH |
| 230 | sed -i s:${S}:${PTEST_PATH}:g \ |
| 231 | ${D}${PTEST_PATH}/memcheck/tests/linux/debuginfod-check.vgtest |
| 232 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 233 | # handle multilib |
| 234 | sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 235 | sed -i s:@libexecdir@:${libexecdir}:g ${D}${PTEST_PATH}/run-ptest |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 236 | sed -i s:@bindir@:${bindir}:g ${D}${PTEST_PATH}/run-ptest |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 237 | |
| 238 | # This test fails on the host as well, using both 3.15 and git master (as of Jan 24 2020) |
| 239 | # https://bugs.kde.org/show_bug.cgi?id=402833 |
| 240 | rm ${D}${PTEST_PATH}/memcheck/tests/overlap.vgtest |
| 241 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 242 | # This is known failure see https://bugs.kde.org/show_bug.cgi?id=435732 |
| 243 | rm ${D}${PTEST_PATH}/memcheck/tests/leak_cpp_interior.vgtest |
| 244 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 245 | # As the binary isn't stripped or debug-splitted, the source file isn't fetched |
| 246 | # via dwarfsrcfiles either, so it needs to be installed manually. |
| 247 | mkdir -p ${D}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/${BP}/none/tests/ |
| 248 | install ${S}/none/tests/tls.c ${D}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/${BP}/none/tests/ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 249 | } |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 250 | |
| 251 | # avoid stripping some generated binaries otherwise some of the tests will fail |
| 252 | # run-strip-reloc.sh, run-strip-strmerge.sh and so on will fail |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 253 | INHIBIT_PACKAGE_STRIP_FILES += "\ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 254 | ${PKGD}${PTEST_PATH}/none/tests/tls \ |
| 255 | ${PKGD}${PTEST_PATH}/none/tests/tls.so \ |
| 256 | ${PKGD}${PTEST_PATH}/none/tests/tls2.so \ |
| 257 | ${PKGD}${PTEST_PATH}/helgrind/tests/tc09_bad_unlock \ |
| 258 | ${PKGD}${PTEST_PATH}/memcheck/tests/manuel1 \ |
| 259 | ${PKGD}${PTEST_PATH}/drd/tests/pth_detached3 \ |
| 260 | " |