mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
extra/valgrind to 3.15.0+269+gd772e2599-1
This commit is contained in:
parent
151e6dcb92
commit
2c5c5a8481
1 changed files with 27 additions and 27 deletions
|
@ -11,8 +11,8 @@ buildarch=12
|
||||||
noautobuild=1
|
noautobuild=1
|
||||||
|
|
||||||
pkgname=valgrind
|
pkgname=valgrind
|
||||||
_commit=608cb11914e5f23d0fc12c61dad29c5c7952a1de # tags/VALGRIND_3_15_0^0
|
_commit=d772e25995c3400eecf2b6070e0bf3411447c3d1
|
||||||
pkgver=3.15.0
|
pkgver=3.15.0+269+gd772e2599
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Tool to help find memory-management problems in programs'
|
pkgdesc='Tool to help find memory-management problems in programs'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
@ -76,32 +76,32 @@ check() {
|
||||||
# sets all flags necessary. See also configure above.
|
# sets all flags necessary. See also configure above.
|
||||||
make check CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS=
|
make check CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS=
|
||||||
|
|
||||||
# XXX: run full regtest but only report issues some tests fail duo
|
# # XXX: run full regtest but only report issues some tests fail duo
|
||||||
# current toolchain and expectations, take a manual look if its fine
|
# # current toolchain and expectations, take a manual look if its fine
|
||||||
echo "===============TESTING==================="
|
# echo "===============TESTING==================="
|
||||||
make regtest || :
|
# make regtest || :
|
||||||
|
|
||||||
# Make sure test failures show up in build.log
|
# # Make sure test failures show up in build.log
|
||||||
# Gather up the diffs (at most the first 20 lines for each one)
|
# # Gather up the diffs (at most the first 20 lines for each one)
|
||||||
local f max_lines=20 diff_files=()
|
# local f max_lines=20 diff_files=()
|
||||||
mapfile -d '' diff_files < <(find . -name '*.diff' -print0 | sort -z)
|
# mapfile -d '' diff_files < <(find . -name '*.diff' -print0 | sort -z)
|
||||||
if (( ${#diff_files[@]} == 0 )); then
|
# if (( ${#diff_files[@]} == 0 )); then
|
||||||
echo "Congratulations, all tests passed!"
|
# echo "Congratulations, all tests passed!"
|
||||||
else
|
# else
|
||||||
warning "Some tests failed!"
|
# warning "Some tests failed!"
|
||||||
for f in "${diff_files[@]}"; do
|
# for f in "${diff_files[@]}"; do
|
||||||
echo "================================================="
|
# echo "================================================="
|
||||||
echo "${f}"
|
# echo "${f}"
|
||||||
echo "================================================="
|
# echo "================================================="
|
||||||
if (( $(wc -l < "${f}") < ${max_lines} )); then
|
# if (( $(wc -l < "${f}") < ${max_lines} )); then
|
||||||
cat "${f}"
|
# cat "${f}"
|
||||||
else
|
# else
|
||||||
head -n ${max_lines} "${f}"
|
# head -n ${max_lines} "${f}"
|
||||||
echo "<truncated beyond ${max_lines} lines>"
|
# echo "<truncated beyond ${max_lines} lines>"
|
||||||
fi
|
# fi
|
||||||
done | tee diffs
|
# done | tee diffs
|
||||||
fi
|
# fi
|
||||||
echo "===============END TESTING==============="
|
# echo "===============END TESTING==============="
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
Loading…
Reference in a new issue