test-qt.sh 3.7 KB
Newer Older
1 2
#!/bin/bash
set -ex
3
buildDir=$(pwd)/build-qt
4
weston --backend=headless-backend.so --idle-time=0 &
5

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

9 10 11 12 13 14 15
# / 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
16
#cd "$buildDir/qtbase/tests/auto/opengl" && make check # fails
17 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/widgets" && make check
#cd "$buildDir/qtbase/tests/auto/xml" && make check

25 26 27 28 29 30 31 32 33 34 35 36 37 38
# 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
39
cd "$buildDir/qtbase/tests/auto/gui/kernel/qclipboard" && make check
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
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
55
#cd "$buildDir/qtbase/tests/auto/gui/kernel/qopenglwindow" && make check #crashes
56 57
cd "$buildDir/qtbase/tests/auto/gui/kernel/qpalette" && make check
cd "$buildDir/qtbase/tests/auto/gui/kernel/qpixelformat" && make check
58
cd "$buildDir/qtbase/tests/auto/gui/kernel/qrasterwindow" && make check
59 60 61
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!
62 63 64 65 66 67 68 69
#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
70 71 72 73

# Qt Wayland

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