ports@,

Here a ping from another diff from my

On Tue, 11 Jun 2024 09:49:39 +0200,
Renaud Allard <ren...@allard.it> wrote:
> 
> 
> On 6/10/24 4:01 PM, Kirill A. Korinsky wrote:
> > ports@
> > 
> > I discovered that make test for net/synapse doesn't work, all tests fail.
> > 
> > Thus, tests seems to be leaked and it consumes near 8G of RAM before it was
> > killed due to hit the hard limit on my system.
> > 
> > To avoid that I had added pytest-forked to run each test in dedicated
> > process that allows to limit memory consumption to 200-300 mb.
> > 
> 
> That's OK for me, but if you find a way so that it passes psql tests
> too, like Landry@ suggested, that would be nice.
>

diff --git net/synapse/Makefile net/synapse/Makefile
index 5af1b855170..6554cad5b50 100644
--- net/synapse/Makefile
+++ net/synapse/Makefile
@@ -72,11 +72,19 @@ RUN_DEPENDS +=      www/py-requests${MODPY_FLAVOR}
 TEST_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH} \
                devel/py-mock${MODPY_FLAVOR} \
                devel/py-parameterized${MODPY_FLAVOR} \
+               devel/py-test-forked${MODPY_FLAVOR} \
                www/py-jwt${MODPY_FLAVOR}
 
 do-configure:
        @${MODCARGO_configure}
 
+MODPY_PYTEST_ARGS =    --forked tests/
+MODPY_TEST_DIR =       ${WRKDIR}
+
+pre-test:
+       @rm -fr ${WRKDIR}/tests
+       @cp -r ${WRKSRC}/tests ${WRKDIR}/
+
 # to generate rust modules.inc:
 #  make modcargo-gen-crates and modcargo-gen-crates-licenses
 .include "modules.inc"


-- 
wbr, Kirill

Reply via email to