aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-01-02 13:01:26 +0100
committerFabian Groffen <grobian@gentoo.org>2020-01-02 13:01:26 +0100
commitc23a51e58606afb2b98177caf47ae6aa6c6dc610 (patch)
treee28cbdd609d710f59433106ae033a478f8cf2f28
parentqkeyword: pass atom restriction (-p/-c) down to tree_foreach_pkg (diff)
downloadportage-utils-c23a51e58606afb2b98177caf47ae6aa6c6dc610.tar.gz
portage-utils-c23a51e58606afb2b98177caf47ae6aa6c6dc610.tar.bz2
portage-utils-c23a51e58606afb2b98177caf47ae6aa6c6dc610.zip
travis: try running tests using Valgrind
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--.travis.yml1
-rwxr-xr-xtests/valgrind-wrapper/qvalgrind2
-rwxr-xr-xtravis/main.sh5
3 files changed, 8 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 83a6ff6..97c8e85 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,6 +24,7 @@ addons:
packages:
- libgpgme11-dev
- gnupg2
+ - valgrind
before_install:
- ./travis/install-blake2.sh
diff --git a/tests/valgrind-wrapper/qvalgrind b/tests/valgrind-wrapper/qvalgrind
index 679c387..ad02269 100755
--- a/tests/valgrind-wrapper/qvalgrind
+++ b/tests/valgrind-wrapper/qvalgrind
@@ -14,6 +14,8 @@ ret=$?
if [[ ${ret} == 234 ]] ; then
mv q-valgrind.log q-valgrind.$$.log
echo "valgrind log can be found at ${PWD}/q-valgrind.$$.log" > /dev/stderr
+ # dump complaints in Travis' log, as we cannot retrieve them lateron
+ [[ -n ${TRAVIS_OS_NAME} ]] && cat q-valgrind.$$.log > /dev/stderr
else
rm q-valgrind.log
fi
diff --git a/travis/main.sh b/travis/main.sh
index c5f7670..50f10c7 100755
--- a/travis/main.sh
+++ b/travis/main.sh
@@ -49,6 +49,11 @@ main() {
do_run ${DEFARGS} --enable-qmanifest --disable-qtegrity
do_run ${DEFARGS} --disable-qmanifest --disable-qtegrity
+ if [[ ${TRAVIS_OS_NAME} == linux ]] ; then
+ do_run CFLAGS=-g Q_RUN_WITH_VALGRIND=1 \
+ ${DEFARGS} --enable-qmanifest --enable-qtegrity
+ fi
+
# LSan needs sudo, which we don't use at the moment
# Debug build w/ASAN and such enabled.
#m debug