~mzanetti/unity8/panel-button-fixes

« back to all changes in this revision

Viewing changes to debian/tests/qmluitests.sh

  • Committer: CI Train Bot
  • Author(s): Albert Astals Cid, Michał Sawicz
  • Date: 2015-09-22 12:57:02 UTC
  • mfrom: (1752.8.47 origin/autopkgtests)
  • Revision ID: ci-train-bot@canonical.com-20150922125702-wboqbqanpto9l9s2
Add DEP-8 test for all our UI and unit tests

Some refactoring was needed:
- added a basic Ubuntu.Web mock
- made plugin path an environment, not a compiled-in bit
- moved Unity.Application resources into .qrc

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
SHELL_QML_PATH=$(pkg-config --variable=plugindir unity-shell-api)
 
4
UNITY_SOURCE_DIR=$(readlink -f $(dirname $(readlink -f $0))/../..)
 
5
 
 
6
dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var" \
 
7
                     -DARTIFACTS_DIR=${ADT_ARTIFACTS} \
 
8
                     -DUNITY_PLUGINPATH=${SHELL_QML_PATH} \
 
9
                     -DUNITY_MOCKPATH=${SHELL_QML_PATH}/mocks
 
10
dh_auto_build --parallel -- -C tests/mocks
 
11
dh_auto_build --parallel -- -C tests/plugins
 
12
dh_auto_build --parallel -- -C tests/qmltests
 
13
dh_auto_build --parallel -- -C tests/uqmlscene
 
14
dh_auto_build --parallel -- -C tests/utils
 
15
 
 
16
export UNITY_SOURCE_DIR
 
17
 
 
18
# FIXME: --parallel here causes some failures
 
19
dh_auto_build -- -k xvfballtests