[tests] Run memory tests on travis
Qt4 will run tests with libjemalloc.so. The Memory.Footprint and the Memory.Fragmentation will only run with libjemalloc.so because we have then a better control over the results.
This commit is contained in:
@@ -18,7 +18,7 @@ addons_shortcuts:
|
||||
addons_qt4: &qt4
|
||||
apt:
|
||||
sources: [ 'ubuntu-toolchain-r-test' ]
|
||||
packages: [ 'g++-5', 'gcc-5',
|
||||
packages: [ 'g++-5', 'gcc-5', 'libjemalloc-dev',
|
||||
'mesa-utils', 'qt4-default' ]
|
||||
addons_qt5: &qt5
|
||||
apt:
|
||||
@@ -117,14 +117,15 @@ matrix:
|
||||
|
||||
# Qt 4 - Release
|
||||
- os: linux
|
||||
sudo: false
|
||||
sudo: required
|
||||
dist: trusty
|
||||
language: cpp
|
||||
compiler: "qt4-gcc5-release"
|
||||
env: BUILDTYPE=Release _CXX=g++-5 _CC=gcc-5
|
||||
addons: *qt4
|
||||
script:
|
||||
- make qt-app
|
||||
- make test-qt
|
||||
- LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so make test-qt-Memory.*:*.Load
|
||||
|
||||
# Qt 5 - Release
|
||||
- os: linux
|
||||
@@ -137,7 +138,7 @@ matrix:
|
||||
script:
|
||||
- make qt-app
|
||||
- make qt-qml-app
|
||||
- make test-valgrind-qt
|
||||
- make test-valgrind-qt--*.Load
|
||||
|
||||
cache:
|
||||
directories:
|
||||
|
||||
12
Makefile
12
Makefile
@@ -253,9 +253,11 @@ qt-app: $(QT_MAKEFILE)
|
||||
qt-qml-app: $(QT_MAKEFILE)
|
||||
$(QT_ENV) $(MAKE) -j$(JOBS) -C $(QT_OUTPUT_PATH) qt-qml-app
|
||||
|
||||
test-qt: $(QT_MAKEFILE) node_modules
|
||||
test-qt-%: $(QT_MAKEFILE) node_modules
|
||||
$(QT_ENV) $(MAKE) -j$(JOBS) -C $(QT_OUTPUT_PATH) test
|
||||
$(GDB) $(QT_OUTPUT_PATH)/$(BUILDTYPE)/test --gtest_catch_exceptions=0 --gtest_filter=*
|
||||
$(GDB) $(QT_OUTPUT_PATH)/$(BUILDTYPE)/test --gtest_catch_exceptions=0 --gtest_filter=$*
|
||||
|
||||
test-qt: test-qt-*
|
||||
|
||||
run-qt-app: qt-app
|
||||
cd $(QT_OUTPUT_PATH)/$(BUILDTYPE) && ./qmapboxgl
|
||||
@@ -263,10 +265,12 @@ run-qt-app: qt-app
|
||||
run-qt-qml-app: qt-qml-app
|
||||
cd $(QT_OUTPUT_PATH)/$(BUILDTYPE) && ./qquickmapboxgl
|
||||
|
||||
test-valgrind-qt: $(QT_MAKEFILE) node_modules
|
||||
test-valgrind-qt-%: $(QT_MAKEFILE) node_modules
|
||||
$(QT_ENV) $(MAKE) -j$(JOBS) -C $(QT_OUTPUT_PATH) test
|
||||
.mason/mason install valgrind latest
|
||||
./scripts/valgrind.sh $(QT_OUTPUT_PATH)/$(BUILDTYPE)/test --gtest_catch_exceptions=0 --gtest_filter=-*.Load
|
||||
./scripts/valgrind.sh $(QT_OUTPUT_PATH)/$(BUILDTYPE)/test --gtest_catch_exceptions=0 --gtest_filter=$*
|
||||
|
||||
test-valgrind-qt: test-valgrind-qt-*
|
||||
|
||||
run-valgrind-qt-app: qt-app
|
||||
.mason/mason install valgrind latest
|
||||
|
||||
@@ -34,7 +34,7 @@ workflows:
|
||||
brew linkapps qt
|
||||
export BUILDTYPE=Debug
|
||||
make qt-app
|
||||
make test-qt
|
||||
make test-qt-*
|
||||
- is_debug: 'yes'
|
||||
- slack:
|
||||
title: Post to Slack
|
||||
|
||||
@@ -35,7 +35,7 @@ workflows:
|
||||
export BUILDTYPE=Debug
|
||||
make qt-app
|
||||
make qt-qml-app
|
||||
make test-qt
|
||||
make test-qt-*
|
||||
- is_debug: 'yes'
|
||||
- slack:
|
||||
title: Post to Slack
|
||||
|
||||
Reference in New Issue
Block a user