pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-nihtest



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue Dec 24 10:51:18 UTC 2024

Modified Files:
        pkgsrc/devel/py-nihtest: Makefile PLIST distinfo
Added Files:
        pkgsrc/devel/py-nihtest/patches: patch-tests_nihtest-conf.in
            patch-tests_nihtest.conf.in

Log Message:
py-nihtest: update to 1.9.1.

Fix self tests inside pkgsrc.

# 1.9.1 [2024-12-17]

- Fix directory comparators broken in 1.9.0.
- Fix handling of files in nested directories.
- Fix on Windows.

# 1.9.0 [2024-12-17]

- Fail for unexpeced empty directories.
- Allow specifying existance of directories.
- Check for duplicate file/directory specifications in test case.
- Deprecate `mkdir` directive, use `directory` instead.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/py-nihtest/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-nihtest/PLIST
cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/py-nihtest/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/py-nihtest/patches/patch-tests_nihtest-conf.in \
    pkgsrc/devel/py-nihtest/patches/patch-tests_nihtest.conf.in

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

Modified files:

Index: pkgsrc/devel/py-nihtest/Makefile
diff -u pkgsrc/devel/py-nihtest/Makefile:1.21 pkgsrc/devel/py-nihtest/Makefile:1.22
--- pkgsrc/devel/py-nihtest/Makefile:1.21       Mon Nov 11 07:28:16 2024
+++ pkgsrc/devel/py-nihtest/Makefile    Tue Dec 24 10:51:18 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.21 2024/11/11 07:28:16 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2024/12/24 10:51:18 wiz Exp $
 
-DISTNAME=      nihtest-1.8.0
+DISTNAME=      nihtest-1.9.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_PYPI:=n/nihtest/}
@@ -26,11 +26,10 @@ post-install:
        ${INSTALL_DATA} ${WRKSRC}/manpages/${man}.mdoc ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/${man}-${PYVERSSUFFIX}.5
 .endfor
 
-# as of 1.5.1
-# 91% tests passed, 5 tests failed out of 54
+TEST_ENV+=     LD_LIBRARY_PATH=${WRKSRC}/build/tests
 do-test:
        ${MKDIR} ${WRKSRC}/build
-       cd ${WRKSRC}/build && cmake .. && ${MAKE} && ctest
+       cd ${WRKSRC}/build && cmake .. && ${MAKE} && ${SETENV} ${TEST_ENV} ctest
 
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-nihtest/PLIST
diff -u pkgsrc/devel/py-nihtest/PLIST:1.6 pkgsrc/devel/py-nihtest/PLIST:1.7
--- pkgsrc/devel/py-nihtest/PLIST:1.6   Wed Apr 10 09:31:00 2024
+++ pkgsrc/devel/py-nihtest/PLIST       Tue Dec 24 10:51:18 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2024/04/10 09:31:00 wiz Exp $
+@comment $NetBSD: PLIST,v 1.7 2024/12/24 10:51:18 wiz Exp $
 bin/nihtest-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
@@ -15,6 +15,9 @@ ${PYSITELIB}/nihtest/CompareArrays.pyo
 ${PYSITELIB}/nihtest/Configuration.py
 ${PYSITELIB}/nihtest/Configuration.pyc
 ${PYSITELIB}/nihtest/Configuration.pyo
+${PYSITELIB}/nihtest/Directory.py
+${PYSITELIB}/nihtest/Directory.pyc
+${PYSITELIB}/nihtest/Directory.pyo
 ${PYSITELIB}/nihtest/Environment.py
 ${PYSITELIB}/nihtest/Environment.pyc
 ${PYSITELIB}/nihtest/Environment.pyo

Index: pkgsrc/devel/py-nihtest/distinfo
diff -u pkgsrc/devel/py-nihtest/distinfo:1.13 pkgsrc/devel/py-nihtest/distinfo:1.14
--- pkgsrc/devel/py-nihtest/distinfo:1.13       Fri Jun  7 12:21:36 2024
+++ pkgsrc/devel/py-nihtest/distinfo    Tue Dec 24 10:51:18 2024
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.13 2024/06/07 12:21:36 wiz Exp $
+$NetBSD: distinfo,v 1.14 2024/12/24 10:51:18 wiz Exp $
 
-BLAKE2s (nihtest-1.8.0.tar.gz) = 3a51eb54b51c8c0c8659f0f41e852d854a7f4298b1b3816a0eb47bb45af71a04
-SHA512 (nihtest-1.8.0.tar.gz) = fdef4ce9f5990f44eda54115767fe01e2f894c0b9b398060d31a424a00d1a8df15c9f12f0d6864b3686a82875294e2c837cc481e3cda130497de6ba6d3a5f620
-Size (nihtest-1.8.0.tar.gz) = 41036 bytes
+BLAKE2s (nihtest-1.9.1.tar.gz) = 8ff230ba2899e70e73e3f7d4311b4b1d98c2cd1f9a15d9a1cbe94c1443dfad05
+SHA512 (nihtest-1.9.1.tar.gz) = 5897551fe1d5be0c3a10408aae44c2a7090f2ca7edd99b361699c85173473ef7474da3da9daa5aa9cc04a7e9215aee781971ecdbb604799d617160bf1be3b858
+Size (nihtest-1.9.1.tar.gz) = 43132 bytes
+SHA1 (patch-tests_nihtest-conf.in) = 4535608d21597d040b1ce781d9f2ad1f323ab960
+SHA1 (patch-tests_nihtest.conf.in) = 48e8fed44e729242e3643df11866bdd1b00fba29

Added files:

Index: pkgsrc/devel/py-nihtest/patches/patch-tests_nihtest-conf.in
diff -u /dev/null pkgsrc/devel/py-nihtest/patches/patch-tests_nihtest-conf.in:1.1
--- /dev/null   Tue Dec 24 10:51:18 2024
+++ pkgsrc/devel/py-nihtest/patches/patch-tests_nihtest-conf.in Tue Dec 24 10:51:18 2024
@@ -0,0 +1,14 @@
+$NetBSD: patch-tests_nihtest-conf.in,v 1.1 2024/12/24 10:51:18 wiz Exp $
+
+Needed for running tests in pkgsrc framework.
+
+--- tests/nihtest-conf.in.orig 2024-12-17 15:26:09.980148365 +0000
++++ tests/nihtest-conf.in
+@@ -6,6 +6,7 @@ program-directories = @PROJECT_BINARY_DI
+ test-input-directories = input
+     @CMAKE_CURRENT_SOURCE_DIR@
+ default-stderr-replace = "^default: " ""
++environment-passthrough = LD_LIBRARY_PATH
+ 
+ [environment]
+ TEST_ENV_CONFIG = This is another successful test.
Index: pkgsrc/devel/py-nihtest/patches/patch-tests_nihtest.conf.in
diff -u /dev/null pkgsrc/devel/py-nihtest/patches/patch-tests_nihtest.conf.in:1.1
--- /dev/null   Tue Dec 24 10:51:18 2024
+++ pkgsrc/devel/py-nihtest/patches/patch-tests_nihtest.conf.in Tue Dec 24 10:51:18 2024
@@ -0,0 +1,11 @@
+$NetBSD: patch-tests_nihtest.conf.in,v 1.1 2024/12/24 10:51:18 wiz Exp $
+
+Needed for running tests in pkgsrc framework.
+
+--- tests/nihtest.conf.in.orig 2024-12-17 14:43:32.000000000 +0000
++++ tests/nihtest.conf.in
+@@ -6,3 +6,4 @@ program-directories = @PROJECT_BINARY_DI
+     @PROJECT_BINARY_DIR@/Debug
+     @VENV_BIN_DIR@
+ default-stderr-replace = "^([A-Za-z]:)?[^: ]*: " ""
++environment-passthrough = LD_LIBRARY_PATH



Home | Main Index | Thread Index | Old Index