Tuesday, January 20, 2026

graphics/mpypaint: try to do something about tests

Tests are broken: there is no Makefile.
Included instructions are wrong/outdated.

Instructione here
https://www.mypaint.app/en/docs/backend/unit-testing/
get the tests running with some success,
but many failures due to not finding modules.

This commit from 2 days ago fixes the tests.
https://github.com/mypaint/mypaint/commit/3bce10c2afc1010760b4cf844f029ed7cb4b96a8

In absence of an update, I suggest (with a preference for #1):
1) Disabling the tests until the next update.
2) Trying to run the semi-borken tests.


Stu



1)


Tests are broken.



diff -Nurp /usr/ports/graphics/mypaint/Makefile ./Makefile
--- /usr/ports/graphics/mypaint/Makefile Tue Oct 28 10:20:27 2025
+++ ./Makefile Tue Jan 20 02:59:37 2026
@@ -47,7 +47,7 @@ LIB_DEPENDS = devel/harfbuzz \
graphics/libmypaint \
x11/gtk+3

-TEST_DEPENDS = devel/py-nose
+NO_TEST = Yes

PORTHOME = ${WRKSRC}




2)


Get some tests working.
https://www.mypaint.app/en/docs/backend/unit-testing/



diff -Nurp /usr/ports/graphics/mypaint/Makefile ./Makefile
--- /usr/ports/graphics/mypaint/Makefile Tue Oct 28 10:20:27 2025
+++ ./Makefile Sat Jan 17 13:08:07 2026
@@ -55,6 +55,11 @@ do-build:
cd ${WRKSRC}; \
${MODPY_BIN} ./setup.py build --build-base=${WRKBUILD}

+# https://www.mypaint.app/en/docs/backend/unit-testing/
+do-test
:
+ cd ${WRKSRC}; \
+ nosetests --with-doctest lib;#gui brushlib
+
do-install:
cd ${WRKSRC}; \
${MODPY_BIN} ./setup.py build --build-base=${WRKBUILD} \

No comments:

Post a Comment