diff options
3 files changed, 1 insertions, 227 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/remove-for-aarch64 b/meta/recipes-devtools/valgrind/valgrind/remove-for-aarch64 deleted file mode 100644 index 5bfba1c8d3..0000000000 --- a/meta/recipes-devtools/valgrind/valgrind/remove-for-aarch64 +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | drd/tests/annotate_sem | ||
| 2 | gdbserver_tests/hgtls | ||
| 3 | helgrind/tests/hg05_race2 | ||
| 4 | helgrind/tests/tc20_verifywrap | ||
| 5 | memcheck/tests/dw4 | ||
| 6 | memcheck/tests/varinfo1 | ||
| 7 | memcheck/tests/varinfo2 | ||
| 8 | memcheck/tests/varinfo3 | ||
| 9 | memcheck/tests/varinfo4 | ||
| 10 | memcheck/tests/varinfo5 | ||
| 11 | memcheck/tests/varinfo6 | ||
| 12 | memcheck/tests/varinforestrict | ||
| 13 | memcheck/tests/atomic_incs | ||
| 14 | memcheck/tests/bug464969_d_demangle | ||
| 15 | memcheck/tests/cxx17_aligned_new | ||
| 16 | memcheck/tests/demangle | ||
| 17 | memcheck/tests/long_namespace_xml | ||
| 18 | memcheck/tests/mismatches | ||
| 19 | memcheck/tests/mismatches_xml | ||
| 20 | memcheck/tests/new_aligned_delete_default | ||
| 21 | memcheck/tests/new_delete_mismatch_size | ||
| 22 | memcheck/tests/new_nothrow | ||
| 23 | memcheck/tests/realloc_size_zero_mismatch | ||
| 24 | memcheck/tests/sized_aligned_new_delete_args | ||
| 25 | memcheck/tests/sized_aligned_new_delete_misaligned1 | ||
| 26 | memcheck/tests/sized_aligned_new_delete_misaligned1_xml | ||
| 27 | memcheck/tests/sized_aligned_new_delete_misaligned2 | ||
| 28 | memcheck/tests/sized_aligned_new_delete_misaligned2_xml | ||
| 29 | memcheck/tests/sized_aligned_new_delete_misaligned3 | ||
| 30 | memcheck/tests/sized_aligned_new_delete_misaligned3_xml | ||
| 31 | memcheck/tests/sized_delete | ||
| 32 | none/tests/bigcode | ||
diff --git a/meta/recipes-devtools/valgrind/valgrind/remove-for-all b/meta/recipes-devtools/valgrind/valgrind/remove-for-all deleted file mode 100644 index 8435a6d41d..0000000000 --- a/meta/recipes-devtools/valgrind/valgrind/remove-for-all +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | cachegrind/tests/wrap5 | ||
| 2 | drd/tests/boost_thread | ||
| 3 | none/tests/amd64/fb_test_amd64 | ||
| 4 | none/tests/tls | ||
| 5 | gdbserver_tests/hginfo | ||
| 6 | gdbserver_tests/mcinvokeRU | ||
| 7 | memcheck/tests/linux/dlclose_leak-no-keep | ||
| 8 | memcheck/tests/linux/dlclose_leak | ||
| 9 | memcheck/tests/linux/timerfd-syscall | ||
| 10 | memcheck/tests/supp_unknown | ||
| 11 | memcheck/tests/wrap1 | ||
| 12 | memcheck/tests/wrap2 | ||
| 13 | memcheck/tests/wrap3 | ||
| 14 | memcheck/tests/wrap4 | ||
| 15 | memcheck/tests/wrap5 | ||
| 16 | memcheck/tests/wrap6 | ||
| 17 | memcheck/tests/wrap7 | ||
| 18 | memcheck/tests/wrap8 | ||
| 19 | helgrind/tests/tls_threads | ||
| 20 | helgrind/tests/pth_mempcpy_false_races | ||
| 21 | drd/tests/bar_bad | ||
| 22 | drd/tests/bar_bad_xml | ||
| 23 | drd/tests/pth_barrier_thr_cr | ||
| 24 | drd/tests/std_thread2 | ||
| 25 | drd/tests/thread_name_xml | ||
| 26 | massif/tests/deep-D | ||
| 27 | massif/tests/bug469146 | ||
| 28 | massif/tests/new-cpp | ||
| 29 | massif/tests/overloaded-new | ||
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.24.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.24.0.bb index 0f05e029b9..34c306ca52 100644 --- a/meta/recipes-devtools/valgrind/valgrind_3.24.0.bb +++ b/meta/recipes-devtools/valgrind/valgrind_3.24.0.bb | |||
| @@ -8,17 +8,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | |||
| 8 | file://include/valgrind.h;beginline=1;endline=56;md5=ad3b317f3286b6b704575d9efe6ca5df \ | 8 | file://include/valgrind.h;beginline=1;endline=56;md5=ad3b317f3286b6b704575d9efe6ca5df \ |
| 9 | file://COPYING.DOCS;md5=24ea4c7092233849b4394699333b5c56" | 9 | file://COPYING.DOCS;md5=24ea4c7092233849b4394699333b5c56" |
| 10 | 10 | ||
| 11 | DEPENDS = " \ | ||
| 12 | ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'boost', '', d)} \ | ||
| 13 | " | ||
| 14 | |||
| 15 | SRC_URI = "https://sourceware.org/pub/valgrind/valgrind-${PV}.tar.bz2 \ | 11 | SRC_URI = "https://sourceware.org/pub/valgrind/valgrind-${PV}.tar.bz2 \ |
| 16 | file://fixed-perl-path.patch \ | 12 | file://fixed-perl-path.patch \ |
| 17 | file://Added-support-for-PPC-instructions-mfatbu-mfatbl.patch \ | 13 | file://Added-support-for-PPC-instructions-mfatbu-mfatbl.patch \ |
| 18 | file://run-ptest \ | ||
| 19 | file://remove-for-aarch64 \ | ||
| 20 | file://remove-for-all \ | ||
| 21 | file://taskset_nondeterministic_tests \ | ||
| 22 | file://use-appropriate-march-mcpu-mfpu-for-ARM-test-apps.patch \ | 14 | file://use-appropriate-march-mcpu-mfpu-for-ARM-test-apps.patch \ |
| 23 | file://avoid-neon-for-targets-which-don-t-support-it.patch \ | 15 | file://avoid-neon-for-targets-which-don-t-support-it.patch \ |
| 24 | file://0001-configure-Drop-setting-mcpu-cortex-a8-on-arm.patch \ | 16 | file://0001-configure-Drop-setting-mcpu-cortex-a8-on-arm.patch \ |
| @@ -39,17 +31,6 @@ UPSTREAM_CHECK_REGEX = "valgrind-(?P<pver>\d+(\.\d+)+)\.tar" | |||
| 39 | 31 | ||
| 40 | COMPATIBLE_HOST = '(i.86|x86_64|arm|aarch64|mips|powerpc|powerpc64).*-linux' | 32 | COMPATIBLE_HOST = '(i.86|x86_64|arm|aarch64|mips|powerpc|powerpc64).*-linux' |
| 41 | 33 | ||
| 42 | # patch 0001-memcheck-vgtests-remove-fullpath-after-flags.patch removes relative path | ||
| 43 | # argument. Change expected stderr files accordingly. | ||
| 44 | do_patch:append() { | ||
| 45 | bb.build.exec_func('do_sed_paths', d) | ||
| 46 | } | ||
| 47 | |||
| 48 | do_sed_paths() { | ||
| 49 | sed -i -e 's|tests/||' ${S}/memcheck/tests/badfree3.stderr.exp | ||
| 50 | sed -i -e 's|tests/||' ${S}/memcheck/tests/varinfo5.stderr.exp | ||
| 51 | } | ||
| 52 | |||
| 53 | # valgrind supports armv7 and above | 34 | # valgrind supports armv7 and above |
| 54 | COMPATIBLE_HOST:armv4 = 'null' | 35 | COMPATIBLE_HOST:armv4 = 'null' |
| 55 | COMPATIBLE_HOST:armv5 = 'null' | 36 | COMPATIBLE_HOST:armv5 = 'null' |
| @@ -69,8 +50,7 @@ COMPATIBLE_HOST:linux-gnun32 = 'null' | |||
| 69 | # Disable for powerpc64 with musl | 50 | # Disable for powerpc64 with musl |
| 70 | COMPATIBLE_HOST:libc-musl:powerpc64 = 'null' | 51 | COMPATIBLE_HOST:libc-musl:powerpc64 = 'null' |
| 71 | 52 | ||
| 72 | # brokenseip is unfortunately required by ptests to pass | 53 | inherit autotools-brokensep multilib_header |
| 73 | inherit autotools-brokensep ptest multilib_header | ||
| 74 | 54 | ||
| 75 | EXTRA_OECONF = "--enable-tls --without-mpicc" | 55 | EXTRA_OECONF = "--enable-tls --without-mpicc" |
| 76 | EXTRA_OECONF += "${@['--enable-only32bit','--enable-only64bit'][d.getVar('SITEINFO_BITS') != '32']}" | 56 | EXTRA_OECONF += "${@['--enable-only32bit','--enable-only64bit'][d.getVar('SITEINFO_BITS') != '32']}" |
| @@ -102,8 +82,6 @@ RDEPENDS:${PN}-callgrind = "${PN} perl" | |||
| 102 | 82 | ||
| 103 | do_configure:prepend () { | 83 | do_configure:prepend () { |
| 104 | rm -rf ${S}/config.h | 84 | rm -rf ${S}/config.h |
| 105 | sed -i -e 's:$(abs_top_builddir):$(pkglibdir)/ptest:g' ${S}/none/tests/Makefile.am | ||
| 106 | sed -i -e 's:$(top_builddir):$(pkglibdir)/ptest:g' ${S}/memcheck/tests/Makefile.am | ||
| 107 | } | 85 | } |
| 108 | 86 | ||
| 109 | do_install:append () { | 87 | do_install:append () { |
| @@ -127,146 +105,3 @@ INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${libexecdir}/valgrind/vgpreload_memcheck- | |||
| 127 | # valgrind needs debug information for ld.so at runtime in order to | 105 | # valgrind needs debug information for ld.so at runtime in order to |
| 128 | # redirect functions like strlen. | 106 | # redirect functions like strlen. |
| 129 | RRECOMMENDS:${PN} += "${TCLIBC}-dbg" | 107 | RRECOMMENDS:${PN} += "${TCLIBC}-dbg" |
| 130 | |||
| 131 | RDEPENDS:${PN}-ptest += " bash coreutils curl file \ | ||
| 132 | gdb \ | ||
| 133 | ${TCLIBC}-src gcc-runtime-dbg \ | ||
| 134 | libgomp \ | ||
| 135 | perl \ | ||
| 136 | perl-module-file-basename perl-module-file-glob perl-module-getopt-long \ | ||
| 137 | perl-module-overloading perl-module-cwd perl-module-ipc-open3 \ | ||
| 138 | perl-module-carp perl-module-symbol \ | ||
| 139 | procps \ | ||
| 140 | python3-compile \ | ||
| 141 | sed \ | ||
| 142 | util-linux-taskset \ | ||
| 143 | ${PN}-dbg ${PN}-src \ | ||
| 144 | ${PN}-cachegrind ${PN}-massif ${PN}-callgrind \ | ||
| 145 | " | ||
| 146 | RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-utils glibc-gconv-utf-32" | ||
| 147 | |||
| 148 | # One of the tests contains a bogus interpreter path on purpose. | ||
| 149 | # Skip file dependency check | ||
| 150 | SKIP_FILEDEPS:${PN}-ptest = '1' | ||
| 151 | INSANE_SKIP:${PN}-ptest = "debug-deps" | ||
| 152 | |||
| 153 | do_compile_ptest() { | ||
| 154 | oe_runmake check | ||
| 155 | } | ||
| 156 | |||
| 157 | |||
| 158 | do_install_ptest() { | ||
| 159 | chmod +x ${B}/tests/vg_regtest | ||
| 160 | |||
| 161 | # The test application binaries are not automatically installed. | ||
| 162 | # Grab them from the build directory. | ||
| 163 | # | ||
| 164 | # The regression tests require scripts and data files that are not | ||
| 165 | # copied to the build directory. They must be copied from the | ||
| 166 | # source directory. | ||
| 167 | saved_dir=$PWD | ||
| 168 | for parent_dir in ${S} ${B} ; do | ||
| 169 | cd $parent_dir | ||
| 170 | |||
| 171 | subdirs=" \ | ||
| 172 | .in_place \ | ||
| 173 | cachegrind/tests \ | ||
| 174 | callgrind/tests \ | ||
| 175 | dhat/tests \ | ||
| 176 | drd/tests \ | ||
| 177 | gdbserver_tests \ | ||
| 178 | helgrind/tests \ | ||
| 179 | lackey/tests \ | ||
| 180 | massif/tests \ | ||
| 181 | memcheck/tests \ | ||
| 182 | none/tests \ | ||
| 183 | tests \ | ||
| 184 | exp-bbv/tests \ | ||
| 185 | " | ||
| 186 | # Get the vg test scripts, filters, and expected files | ||
| 187 | for dir in $subdirs ; do | ||
| 188 | find $dir | cpio -pvdu ${D}${PTEST_PATH} | ||
| 189 | done | ||
| 190 | cd $saved_dir | ||
| 191 | done | ||
| 192 | |||
| 193 | # The scripts reference config.h so add it to the top ptest dir. | ||
| 194 | cp ${B}/config.h ${D}${PTEST_PATH} | ||
| 195 | install -D ${UNPACKDIR}/remove-for-aarch64 ${D}${PTEST_PATH} | ||
| 196 | install -D ${UNPACKDIR}/remove-for-all ${D}${PTEST_PATH} | ||
| 197 | install -D ${UNPACKDIR}/taskset_nondeterministic_tests ${D}${PTEST_PATH} | ||
| 198 | |||
| 199 | # Add an executable need by none/tests/bigcode | ||
| 200 | mkdir ${D}${PTEST_PATH}/perf | ||
| 201 | cp ${B}/perf/bigcode ${D}${PTEST_PATH}/perf | ||
| 202 | |||
| 203 | # Add an executable needed by memcheck/tests/vcpu_bz2 | ||
| 204 | cp ${B}/perf/bz2 ${D}${PTEST_PATH}/perf | ||
| 205 | |||
| 206 | # Make the ptest dir look like the top level valgrind src dir | ||
| 207 | # This is checked by the gdbserver_tests/make_local_links script | ||
| 208 | mkdir ${D}${PTEST_PATH}/coregrind | ||
| 209 | cp ${B}/coregrind/vgdb ${D}${PTEST_PATH}/coregrind | ||
| 210 | |||
| 211 | # Add an executable needed by massif tests | ||
| 212 | cp ${B}/massif/ms_print ${D}${PTEST_PATH}/massif/ms_print | ||
| 213 | |||
| 214 | find ${D}${PTEST_PATH} \ | ||
| 215 | \( \ | ||
| 216 | -name "Makefile*" \ | ||
| 217 | -o -name "*.o" \ | ||
| 218 | \) \ | ||
| 219 | -exec rm {} \; | ||
| 220 | |||
| 221 | sed -i s:\.\./\.\./callgrind/callgrind_annotate:${bindir}/callgrind_annotate: ${D}${PTEST_PATH}/callgrind/tests/ann1.vgtest | ||
| 222 | sed -i s:\.\./\.\./callgrind/callgrind_annotate:${bindir}/callgrind_annotate: ${D}${PTEST_PATH}/callgrind/tests/ann2.vgtest | ||
| 223 | |||
| 224 | # point the expanded @abs_top_builddir@ of the host to PTEST_PATH | ||
| 225 | sed -i s:${S}:${PTEST_PATH}:g \ | ||
| 226 | ${D}${PTEST_PATH}/memcheck/tests/linux/debuginfod-check.vgtest | ||
| 227 | |||
| 228 | # handle multilib | ||
| 229 | sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest | ||
| 230 | sed -i s:@libexecdir@:${libexecdir}:g ${D}${PTEST_PATH}/run-ptest | ||
| 231 | sed -i s:@bindir@:${bindir}:g ${D}${PTEST_PATH}/run-ptest | ||
| 232 | |||
| 233 | # enable cachegrind ptests | ||
| 234 | ln -s ${bindir}/cg_annotate ${D}/${PTEST_PATH}/cachegrind/cg_annotate | ||
| 235 | ln -s ${bindir}/cg_diff ${D}/${PTEST_PATH}/cachegrind/cg_diff | ||
| 236 | ln -s ${bindir}/cg_merge ${D}/${PTEST_PATH}/cachegrind/cg_merge | ||
| 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 | |||
| 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 | |||
| 245 | # https://bugs.kde.org/show_bug.cgi?id=445743 | ||
| 246 | rm ${D}${PTEST_PATH}/drd/tests/pth_mutex_signal | ||
| 247 | |||
| 248 | # As the binary isn't stripped or debug-splitted, the source file isn't fetched | ||
| 249 | # via dwarfsrcfiles either, so it needs to be installed manually. | ||
| 250 | mkdir -p ${D}${TARGET_DBGSRC_DIR}/none/tests/ | ||
| 251 | install ${S}/none/tests/tls.c ${D}${TARGET_DBGSRC_DIR}/none/tests/ | ||
| 252 | } | ||
| 253 | |||
| 254 | do_install_ptest:append:x86-64 () { | ||
| 255 | # https://bugs.kde.org/show_bug.cgi?id=463456 | ||
| 256 | rm ${D}${PTEST_PATH}/memcheck/tests/origin6-fp.vgtest | ||
| 257 | # https://bugs.kde.org/show_bug.cgi?id=463458 | ||
| 258 | rm ${D}${PTEST_PATH}/memcheck/tests/vcpu_fnfns.vgtest | ||
| 259 | # https://bugs.kde.org/show_bug.cgi?id=463463 | ||
| 260 | rm ${D}${PTEST_PATH}/none/tests/amd64/fma.vgtest | ||
| 261 | } | ||
| 262 | |||
| 263 | # avoid stripping some generated binaries otherwise some of the tests will fail | ||
| 264 | # run-strip-reloc.sh, run-strip-strmerge.sh and so on will fail | ||
| 265 | INHIBIT_PACKAGE_STRIP_FILES += "\ | ||
| 266 | ${PKGD}${PTEST_PATH}/none/tests/tls \ | ||
| 267 | ${PKGD}${PTEST_PATH}/none/tests/tls.so \ | ||
| 268 | ${PKGD}${PTEST_PATH}/none/tests/tls2.so \ | ||
| 269 | ${PKGD}${PTEST_PATH}/helgrind/tests/tc09_bad_unlock \ | ||
| 270 | ${PKGD}${PTEST_PATH}/memcheck/tests/manuel1 \ | ||
| 271 | ${PKGD}${PTEST_PATH}/drd/tests/pth_detached3 \ | ||
| 272 | " | ||
