qt/run_test.sh
#!/bin/bash

export QML_IMPORT_PATH=$PREFIX/lib/qt4/imports
export FONTCONFIG_PATH=$PREFIX/etc/fonts

if [ -d $PREFIX/lib/qt4/tests/qt4 ]; then
  $PREFIX/lib/qt4/tests/qt4/tst_hybridPixmap/hybridPixmap
  $PREFIX/lib/qt4/tests/qt4/tst_qdeclarativewebview/tst_qdeclarativewebview
  $PREFIX/lib/qt4/tests/qt4/tst_qgraphicswebview/tst_qgraphicswebview
  $PREFIX/lib/qt4/tests/qt4/tst_qwebelement/tst_qwebelement
  $PREFIX/lib/qt4/tests/qt4/tst_qwebframe/tst_qwebframe
  $PREFIX/lib/qt4/tests/qt4/tst_qwebhistory/tst_qwebhistory
  $PREFIX/lib/qt4/tests/qt4/tst_qwebhistoryinterface/tst_qwebhistoryinterface
  $PREFIX/lib/qt4/tests/qt4/tst_qwebinspector/tst_qwebinspector
  $PREFIX/lib/qt4/tests/qt4/tst_qwebview/tst_qwebview
fi

# Skip these two tests because they don't finish
# on Mac, although they seem to pass
# $PREFIX/tests/qt4/tst_loading/tst_loading
# $PREFIX/tests/qt4/tst_painting/tst_painting

# Next one is commented out due to 3 buggy tests
# See https://bugs.webkit.org/show_bug.cgi?id=29867
# $PREFIX/tests/qt4/tst_qwebpage/tst_qwebpage
