testing/kdesignerplugin: use xvfb-run to run testsuite

Closes GH-8420
This commit is contained in:
Leo 2019-06-02 19:12:04 -03:00 committed by Kevin Daudt
parent 088c623566
commit e20879bd72

View File

@ -9,9 +9,9 @@ url="https://community.kde.org/Frameworks"
license="LGPL-2.1-only"
depends_dev="kcoreaddons-dev kconfig-dev kcompletion-dev kconfigwidgets-dev kiconthemes-dev kio-dev kitemviews-dev kplotting-dev ktextwidgets-dev kwidgetsaddons-dev kxmlgui-dev sonnet-dev"
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev kdoctools-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
options="!check" # Fails due to requiring running X11
build() {
cmake \
@ -22,10 +22,9 @@ build() {
}
check() {
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}
package() {
DESTDIR="$pkgdir" make install
}