| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
############################################################################# |
| 4 |
## |
| 5 |
## Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). |
| 6 |
## All rights reserved. |
| 7 |
## Contact: Nokia Corporation (qt-info@nokia.com) |
| 8 |
## |
| 9 |
## This file is part of the test suite of the Qt Toolkit. |
| 10 |
## |
| 11 |
## $QT_BEGIN_LICENSE:LGPL$ |
| 12 |
## GNU Lesser General Public License Usage |
| 13 |
## This file may be used under the terms of the GNU Lesser General Public |
| 14 |
## License version 2.1 as published by the Free Software Foundation and |
| 15 |
## appearing in the file LICENSE.LGPL included in the packaging of this |
| 16 |
## file. Please review the following information to ensure the GNU Lesser |
| 17 |
## General Public License version 2.1 requirements will be met: |
| 18 |
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
| 19 |
## |
| 20 |
## In addition, as a special exception, Nokia gives you certain additional |
| 21 |
## rights. These rights are described in the Nokia Qt LGPL Exception |
| 22 |
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
| 23 |
## |
| 24 |
## GNU General Public License Usage |
| 25 |
## Alternatively, this file may be used under the terms of the GNU General |
| 26 |
## Public License version 3.0 as published by the Free Software Foundation |
| 27 |
## and appearing in the file LICENSE.GPL included in the packaging of this |
| 28 |
## file. Please review the following information to ensure the GNU General |
| 29 |
## Public License version 3.0 requirements will be met: |
| 30 |
## http://www.gnu.org/copyleft/gpl.html. |
| 31 |
## |
| 32 |
## Other Usage |
| 33 |
## Alternatively, this file may be used in accordance with the terms and |
| 34 |
## conditions contained in a signed written agreement between you and Nokia. |
| 35 |
## |
| 36 |
## |
| 37 |
## |
| 38 |
## |
| 39 |
## |
| 40 |
## $QT_END_LICENSE$ |
| 41 |
## |
| 42 |
############################################################################/ |
| 43 |
|
| 44 |
if [ "$(uname)" = Linux ] |
| 45 |
then |
| 46 |
Xnest :7 2>/dev/null & |
| 47 |
sleep 1 |
| 48 |
trap "kill $!" EXIT |
| 49 |
export DISPLAY=:7 |
| 50 |
export LANG=en_US |
| 51 |
kwin 2>/dev/null & |
| 52 |
sleep 1 |
| 53 |
fi |
| 54 |
|
| 55 |
function filter |
| 56 |
{ |
| 57 |
exe=$1 |
| 58 |
skip=0 |
| 59 |
while read line |
| 60 |
do |
| 61 |
if [ $skip != 0 ] |
| 62 |
then |
| 63 |
let skip=skip-1 |
| 64 |
else |
| 65 |
case "$line" in |
| 66 |
make*Error) echo "$line";; |
| 67 |
make*Stop) echo "$line";; |
| 68 |
/*/bin/make*) ;; |
| 69 |
make*) ;; |
| 70 |
install*) ;; |
| 71 |
QDeclarativeDebugServer:*Waiting*) ;; |
| 72 |
QDeclarativeDebugServer:*Connection*) ;; |
| 73 |
*/qmake*) ;; |
| 74 |
*/bin/moc*) ;; |
| 75 |
*targ.debug*) ;; |
| 76 |
g++*) ;; |
| 77 |
cd*) ;; |
| 78 |
XFAIL*) skip=1;; |
| 79 |
SKIP*) skip=1;; |
| 80 |
PASS*) ;; |
| 81 |
QDEBUG*) ;; |
| 82 |
Makefile*) ;; |
| 83 |
Config*) ;; |
| 84 |
Totals*) ;; |
| 85 |
\**) ;; |
| 86 |
./*) ;; |
| 87 |
*tst_*) echo "$line" ;; |
| 88 |
*) echo "$exe: $line" |
| 89 |
esac |
| 90 |
fi |
| 91 |
done |
| 92 |
} |
| 93 |
|
| 94 |
make -k -j1 install 2>&1 | filter build |
| 95 |
for exe in $(make install | sed -n 's/^install .* "\([^"]*qt4\/tst_[^"]*\)".*/\1/p') |
| 96 |
do |
| 97 |
echo $exe |
| 98 |
$exe 2>&1 | filter $exe |
| 99 |
done |