diff --git a/recipes-qt/qt6/ptest/run-ptest b/recipes-qt/qt6/ptest/run-ptest index 3933bae..1052856 100644 --- a/recipes-qt/qt6/ptest/run-ptest +++ b/recipes-qt/qt6/ptest/run-ptest @@ -1,5 +1,16 @@ #!/bin/sh +if [ ! -e tst_list ]; then + echo PASS: no tests + exit 0 +fi + +export LANG=C.UTF-8 +export QT_QPA_PLATFORM=offscreen for test in $(cat tst_list); do - ( cd $(dirname ${test}) && ./$(basename ${test}) ) + ( + cd $(dirname ${test}) + t=$(basename ${test}) + ./${t} && echo PASS: ${t} || echo FAIL: ${t} + ) done diff --git a/recipes-qt/qt6/qt6-ptest.inc b/recipes-qt/qt6/qt6-ptest.inc index c12c9bf..d2b9b4d 100644 --- a/recipes-qt/qt6/qt6-ptest.inc +++ b/recipes-qt/qt6/qt6-ptest.inc @@ -10,6 +10,8 @@ DEBUG_PREFIX_MAP += "\ -fmacro-prefix-map=${D}= \ " +do_install_ptest_base[progress] = "${@d.getVarFlag('do_compile', 'progress')}" + fakeroot do_install_ptest() { cat >${WORKDIR}/toolchain-ptest.cmake <