sys-apps/polychromatic: wire up tests

Bug: https://bugs.gentoo.org/933050
Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Closes: https://github.com/gentoo/gentoo/pull/37151
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Matoro Mahri
2024-06-13 20:14:35 -04:00
committed by Maciej Barć
parent 4f366a4db9
commit d8cfb771b4
2 changed files with 12 additions and 0 deletions

View File

@@ -51,6 +51,12 @@ DOC_CONTENTS="To automatically start up Polychromatic on session login copy
/usr/share/polychromatic/polychromatic-autostart.desktop file into Your user's
~/.config/autostart/ directory."
src_test() {
rm -rf "locale" || die
ln -svf "${BUILD_DIR}/locale" "locale" || die
PYTHONPATH="tests:${PYTHONPATH}" "${EPYTHON}" "tests/runner.py" || die
}
src_install() {
meson_src_install
python_optimize

View File

@@ -51,6 +51,12 @@ DOC_CONTENTS="To automatically start up Polychromatic on session login copy
/usr/share/polychromatic/polychromatic-autostart.desktop file into Your user's
~/.config/autostart/ directory."
src_test() {
rm -rf "locale" || die
ln -svf "${BUILD_DIR}/locale" "locale" || die
PYTHONPATH="tests:${PYTHONPATH}" "${EPYTHON}" "tests/runner.py" || die
}
src_install() {
meson_src_install
python_optimize