diff --git a/sys-apps/polychromatic/polychromatic-0.9.1.ebuild b/sys-apps/polychromatic/polychromatic-0.9.1.ebuild index 19e9c50db521a..17566f06c6804 100644 --- a/sys-apps/polychromatic/polychromatic-0.9.1.ebuild +++ b/sys-apps/polychromatic/polychromatic-0.9.1.ebuild @@ -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 diff --git a/sys-apps/polychromatic/polychromatic-9999.ebuild b/sys-apps/polychromatic/polychromatic-9999.ebuild index 19e9c50db521a..17566f06c6804 100644 --- a/sys-apps/polychromatic/polychromatic-9999.ebuild +++ b/sys-apps/polychromatic/polychromatic-9999.ebuild @@ -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