pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-test-timeout



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Oct 19 06:52:03 UTC 2017

Added Files:
        pkgsrc/devel/py-test-timeout: DESCR Makefile PLIST distinfo

Log Message:
This is a plugin which will terminate tests after a certain timeout. When doing
so it will show a stack dump of all threads running at the time. This is useful
when running tests under a continuous integration server or simply if you don't
know why the test suite hangs.

Note that while by default on POSIX systems py.test will continue to execute
the tests after a test has timed, out this is not always possible. Often the
only sure way to interrupt a hanging test is by terminating the entire process.
As this is a hard termination (os._exit()) it will result in no teardown, JUnit
XML output etc. But the plugin will ensure you will have the debugging output
on stderr nevertheless, which is the most important part at this stage.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-test-timeout/DESCR \
    pkgsrc/devel/py-test-timeout/Makefile pkgsrc/devel/py-test-timeout/PLIST \
    pkgsrc/devel/py-test-timeout/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/py-test-timeout/DESCR
diff -u /dev/null pkgsrc/devel/py-test-timeout/DESCR:1.1
--- /dev/null   Thu Oct 19 06:52:03 2017
+++ pkgsrc/devel/py-test-timeout/DESCR  Thu Oct 19 06:52:03 2017
@@ -0,0 +1,11 @@
+This is a plugin which will terminate tests after a certain timeout. When doing
+so it will show a stack dump of all threads running at the time. This is useful
+when running tests under a continuous integration server or simply if you don't
+know why the test suite hangs.
+
+Note that while by default on POSIX systems py.test will continue to execute
+the tests after a test has timed, out this is not always possible. Often the
+only sure way to interrupt a hanging test is by terminating the entire process.
+As this is a hard termination (os._exit()) it will result in no teardown, JUnit
+XML output etc. But the plugin will ensure you will have the debugging output
+on stderr nevertheless, which is the most important part at this stage.
Index: pkgsrc/devel/py-test-timeout/Makefile
diff -u /dev/null pkgsrc/devel/py-test-timeout/Makefile:1.1
--- /dev/null   Thu Oct 19 06:52:03 2017
+++ pkgsrc/devel/py-test-timeout/Makefile       Thu Oct 19 06:52:03 2017
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2017/10/19 06:52:03 adam Exp $
+
+DISTNAME=      pytest-timeout-1.2.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-timeout/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://bitbucket.org/pytest-dev/pytest-timeout/
+COMMENT=       Py.test plugin to abort hanging tests
+LICENSE=       mit
+
+DEPENDS+=      ${PYPKGPREFIX}-test>=2.8.0:../../devel/py-test
+
+USE_LANGUAGES= # none
+
+#post-install:
+#      cd ${DESTDIR}${PREFIX}/bin && \
+#              ${MV} py.test py.test-${PYVERSSUFFIX} && \
+#              ${MV} pytest pytest-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-test-timeout/PLIST
diff -u /dev/null pkgsrc/devel/py-test-timeout/PLIST:1.1
--- /dev/null   Thu Oct 19 06:52:03 2017
+++ pkgsrc/devel/py-test-timeout/PLIST  Thu Oct 19 06:52:03 2017
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2017/10/19 06:52:03 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/pytest_timeout.py
+${PYSITELIB}/pytest_timeout.pyc
+${PYSITELIB}/pytest_timeout.pyo
Index: pkgsrc/devel/py-test-timeout/distinfo
diff -u /dev/null pkgsrc/devel/py-test-timeout/distinfo:1.1
--- /dev/null   Thu Oct 19 06:52:03 2017
+++ pkgsrc/devel/py-test-timeout/distinfo       Thu Oct 19 06:52:03 2017
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/10/19 06:52:03 adam Exp $
+
+SHA1 (pytest-timeout-1.2.0.tar.gz) = 6895457de75f39992af318693136fd05d2c825f7
+RMD160 (pytest-timeout-1.2.0.tar.gz) = 3e0674c33446d700105f90fc1c7afcf252bfe932
+SHA512 (pytest-timeout-1.2.0.tar.gz) = b86548843e9ff8c8f7d1c39735025cdfa98befe2860e2a8a5d422d08bd7f542032384f147125a2a2841268154cc3a3874ef0aa4765d454fd5390edb773b106ae
+Size (pytest-timeout-1.2.0.tar.gz) = 13258 bytes



Home | Main Index | Thread Index | Old Index