test-qt.sh 3.93 KB
Newer Older
Johan Helsing's avatar
Johan Helsing committed
1 2
#!/bin/bash
set -ex
3
buildDir=$(pwd)/build-qt
4
srcDir=$(pwd)/qt5
5
weston --backend=headless-backend.so --idle-time=0 &
6

7 8 9
# Give the compositor some time to start up
sleep 5

10 11 12 13 14 15 16
# / tests

#cd "$buildDir/qtbase/tests/auto/concurrent" && make check
#cd "$buildDir/qtbase/tests/auto/corelib" && make check
#cd "$buildDir/qtbase/tests/auto/cd "$buildDir/qtbase/tests/auto/gui" && make check #fails/hangs" && make check
#cd "$buildDir/qtbase/tests/auto/installed_cmake" && make check
#cd "$buildDir/qtbase/tests/auto/network" && make check
17
#cd "$buildDir/qtbase/tests/auto/opengl" && make check # fails
18 19 20 21 22 23 24
#cd "$buildDir/qtbase/tests/auto/other" && make check
#cd "$buildDir/qtbase/tests/auto/printsupport" && make check
#cd "$buildDir/qtbase/tests/auto/sql" && make check
#cd "$buildDir/qtbase/tests/auto/testlib" && make check
#cd "$buildDir/qtbase/tests/auto/tools" && make check
#cd "$buildDir/qtbase/tests/auto/xml" && make check

25
# Run widget tests after specfic commit in qtbase
26 27 28 29
#TODO: make widget tests pass again
#if git --git-dir="$srcDir/qtbase/.git" merge-base --is-ancestor 52484cc4b6696c8a5c1f69125d81eb0cede8cdb2 HEAD ; then
#    cd "$buildDir/qtbase/tests/auto/widgets" && make check
#fi
30

31 32 33 34 35 36 37 38 39 40 41 42 43 44
# gui tests

#cd "$buildDir/qtbase/tests/auto/gui/image" && make check #hangs
cd "$buildDir/qtbase/tests/auto/gui/itemmodels" && make check
cd "$buildDir/qtbase/tests/auto/gui/math3d" && make check
cd "$buildDir/qtbase/tests/auto/gui/qopengl" && make check
cd "$buildDir/qtbase/tests/auto/gui/qopenglconfig" && make check
#cd "$buildDir/qtbase/tests/auto/gui/painting" && make check #fails!
#cd "$buildDir/qtbase/tests/auto/gui/text" && make check #fails!
#cd "$buildDir/qtbase/tests/auto/gui/kernel" && make check #fails!

# gui/kernel tests (remove this section when all pass and enable above)

cd "$buildDir/qtbase/tests/auto/gui/kernel/qbackingstore" && make check
Johan Helsing's avatar
Johan Helsing committed
45
cd "$buildDir/qtbase/tests/auto/gui/kernel/qclipboard" && make check
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
cd "$buildDir/qtbase/tests/auto/gui/kernel/qcursor" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qdrag" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qevent" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qfileopenevent" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qguiapplication" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qguieventdispatcher" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qguieventloop" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qguimetatype" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qguitimer" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qguivariant" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qinputmethod" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qkeyevent" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qkeysequence" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qmouseevent" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qmouseevent_modal" && make check
61
#cd "$buildDir/qtbase/tests/auto/gui/kernel/qopenglwindow" && make check #crashes
62 63
cd "$buildDir/qtbase/tests/auto/gui/kernel/qpalette" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qpixelformat" && make check
64
cd "$buildDir/qtbase/tests/auto/gui/kernel/qrasterwindow" && make check
65 66 67
cd "$buildDir/qtbase/tests/auto/gui/kernel/qscreen" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qsurfaceformat" && make check
#cd "$buildDir/qtbase/tests/auto/gui/kernel/qtouchevent" && make check #fails!
68 69 70 71 72 73 74 75
#cd "$buildDir/qtbase/tests/auto/gui/kernel/qwindow" && make check #childWindowPositioning(create) has protocol error

# opengl tests (remove this section when all pass and enable above)

#cd "$buildDir/qtbase/tests/auto/opengl/qgl" && make check # fails
#cd "$buildDir/qtbase/tests/auto/opengl/qglthreads" && make check #fails
cd "$buildDir/qtbase/tests/auto/opengl/qglbuffer" && make check
cd "$buildDir/qtbase/tests/auto/opengl/qglfunctions" && make check
Johan Helsing's avatar
Johan Helsing committed
76 77 78 79

# Qt Wayland

cd "$buildDir/qtwayland/tests/auto/" && make check