Change qml list interface
[profile/ivi/qtdeclarative.git] / tests / auto / qml / runall.sh
1 #!/bin/bash
2 #
3 #############################################################################
4 ##
5 ## Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
6 ## Contact: http://www.qt-project.org/legal
7 ##
8 ## This file is part of the test suite of the Qt Toolkit.
9 ##
10 ## $QT_BEGIN_LICENSE:LGPL$
11 ## Commercial License Usage
12 ## Licensees holding valid commercial Qt licenses may use this file in
13 ## accordance with the commercial license agreement provided with the
14 ## Software or, alternatively, in accordance with the terms contained in
15 ## a written agreement between you and Digia.  For licensing terms and
16 ## conditions see http://qt.digia.com/licensing.  For further information
17 ## use the contact form at http://qt.digia.com/contact-us.
18 ##
19 ## GNU Lesser General Public License Usage
20 ## Alternatively, this file may be used under the terms of the GNU Lesser
21 ## General Public License version 2.1 as published by the Free Software
22 ## Foundation and appearing in the file LICENSE.LGPL included in the
23 ## packaging of this file.  Please review the following information to
24 ## ensure the GNU Lesser General Public License version 2.1 requirements
25 ## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
26 ##
27 ## In addition, as a special exception, Digia gives you certain additional
28 ## rights.  These rights are described in the Digia Qt LGPL Exception
29 ## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
30 ##
31 ## GNU General Public License Usage
32 ## Alternatively, this file may be used under the terms of the GNU
33 ## General Public License version 3.0 as published by the Free Software
34 ## Foundation and appearing in the file LICENSE.GPL included in the
35 ## packaging of this file.  Please review the following information to
36 ## ensure the GNU General Public License version 3.0 requirements will be
37 ## met: http://www.gnu.org/copyleft/gpl.html.
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             QQmlDebugServer:*Waiting*) ;;
72             QQmlDebugServer:*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
100