@@ -22,9 +22,21 @@ macro(add_gesture_ui_test CLASSNAME)
2222 -o -,txt)
2323
2424 add_custom_target(test${CLASSNAME} ${testCommand})
25− add_dependencies(qmluitests test${CLASSNAME})
2625 add_dependencies(test${CLASSNAME} ${CLASSNAME}TestExec UbuntuGesturesTestQmlFiles)
2726
27+ set(xvfbtestCommand
28+ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
29+ LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/plugins/Ubuntu/Gestures
30+ xvfb-run --server-args "-screen 0 1024x768x24" --auto-servernum
31+ ${CMAKE_CURRENT_BINARY_DIR}/${CLASSNAME}TestExec
32+ -o ${CMAKE_BINARY_DIR}/${CLASSNAME}Test.xml,xunitxml
33+ -o -,txt)
34+
35+ add_custom_target(xvfbtest${CLASSNAME} ${xvfbtestCommand})
36+ add_dependencies(test${CLASSNAME} ${CLASSNAME}TestExec UbuntuGesturesTestQmlFiles)
37+
38+ add_dependencies(qmluitests xvfbtest${CLASSNAME})
39+
2840 add_executable(${CLASSNAME}TestExec tst_${CLASSNAME}.cpp GestureTest.cpp)
2941 qt5_use_modules(${CLASSNAME}TestExec Test Core Qml Gui Quick)
3042 target_link_libraries(${CLASSNAME}TestExec UbuntuGestureQml)