pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/hs-tasty-expected-failure



Module Name:    pkgsrc
Committed By:   pho
Date:           Fri Jan 31 14:35:08 UTC 2025

Added Files:
        pkgsrc/devel/hs-tasty-expected-failure: DESCR Makefile PLIST
            buildlink3.mk distinfo

Log Message:
devel/hs-tasty-expected-failure: import hs-tasty-expected-failure-0.12.3

With the function Test.Tasty.ExpectedFailure.expectFail in the provided module
Test.Tasty.ExpectedFailure, you can mark that you expect test cases to fail, and
not to pass.

This can for example be used for test-driven development: Create the tests, mark
them with Test.Tasty.ExpectedFailure.expectFail, and you can still push to the
main branch, without your continuous integration branch failing.

Once someone implements the feature or fixes the bug (maybe unknowingly), the
test suite will tell him so, due to the now unexpectedly passing test, and he
can remove the Test.Tasty.ExpectedFailure.expectFail marker.

The module also provides Test.Tasty.ExpectedFailure.ignoreTest to avoid running
a test. Both funtions are implemented via the more general
Test.Tasty.ExpectedFailure.wrapTest, which is also provided.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-tasty-expected-failure/DESCR \
    pkgsrc/devel/hs-tasty-expected-failure/Makefile \
    pkgsrc/devel/hs-tasty-expected-failure/PLIST \
    pkgsrc/devel/hs-tasty-expected-failure/buildlink3.mk \
    pkgsrc/devel/hs-tasty-expected-failure/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/hs-tasty-expected-failure/DESCR
diff -u /dev/null pkgsrc/devel/hs-tasty-expected-failure/DESCR:1.1
--- /dev/null   Fri Jan 31 14:35:08 2025
+++ pkgsrc/devel/hs-tasty-expected-failure/DESCR        Fri Jan 31 14:35:08 2025
@@ -0,0 +1,15 @@
+With the function Test.Tasty.ExpectedFailure.expectFail in the provided module
+Test.Tasty.ExpectedFailure, you can mark that you expect test cases to fail, and
+not to pass.
+
+This can for example be used for test-driven development: Create the tests, mark
+them with Test.Tasty.ExpectedFailure.expectFail, and you can still push to the
+main branch, without your continuous integration branch failing.
+
+Once someone implements the feature or fixes the bug (maybe unknowingly), the
+test suite will tell him so, due to the now unexpectedly passing test, and he
+can remove the Test.Tasty.ExpectedFailure.expectFail marker.
+
+The module also provides Test.Tasty.ExpectedFailure.ignoreTest to avoid running
+a test. Both funtions are implemented via the more general
+Test.Tasty.ExpectedFailure.wrapTest, which is also provided.
Index: pkgsrc/devel/hs-tasty-expected-failure/Makefile
diff -u /dev/null pkgsrc/devel/hs-tasty-expected-failure/Makefile:1.1
--- /dev/null   Fri Jan 31 14:35:08 2025
+++ pkgsrc/devel/hs-tasty-expected-failure/Makefile     Fri Jan 31 14:35:08 2025
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2025/01/31 14:35:08 pho Exp $
+
+DISTNAME=      tasty-expected-failure-0.12.3
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Mark tasty tests as failure expected
+LICENSE=       mit
+
+.include "../../devel/hs-tagged/buildlink3.mk"
+.include "../../devel/hs-tasty/buildlink3.mk"
+.include "../../devel/hs-unbounded-delays/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/hs-tasty-expected-failure/PLIST
diff -u /dev/null pkgsrc/devel/hs-tasty-expected-failure/PLIST:1.1
--- /dev/null   Fri Jan 31 14:35:08 2025
+++ pkgsrc/devel/hs-tasty-expected-failure/PLIST        Fri Jan 31 14:35:08 2025
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2025/01/31 14:35:08 pho Exp $
+${PLIST.shlibs}lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Test/Tasty/ExpectedFailure.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Test/Tasty/ExpectedFailure.hi
+${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Test/Tasty/ExpectedFailure.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+lib/tasty-expected-failure-${PKGVERSION}/${HS_VERSION}/package-description
+lib/tasty-expected-failure-${PKGVERSION}/${HS_VERSION}/package-id
+share/doc/${HS_PLATFORM}/tasty-expected-failure-${PKGVERSION}/LICENSE
+${PLIST.doc}share/doc/${HS_PLATFORM}/tasty-expected-failure-${PKGVERSION}/html/Test-Tasty-ExpectedFailure.html
+${PLIST.doc}share/doc/${HS_PLATFORM}/tasty-expected-failure-${PKGVERSION}/html/doc-index.html
+${PLIST.doc}share/doc/${HS_PLATFORM}/tasty-expected-failure-${PKGVERSION}/html/haddock-bundle.min.js
+${PLIST.doc}share/doc/${HS_PLATFORM}/tasty-expected-failure-${PKGVERSION}/html/index.html
+${PLIST.doc}share/doc/${HS_PLATFORM}/tasty-expected-failure-${PKGVERSION}/html/linuwial.css
+${PLIST.doc}share/doc/${HS_PLATFORM}/tasty-expected-failure-${PKGVERSION}/html/meta.json
+${PLIST.doc}share/doc/${HS_PLATFORM}/tasty-expected-failure-${PKGVERSION}/html/quick-jump.css
+${PLIST.doc}share/doc/${HS_PLATFORM}/tasty-expected-failure-${PKGVERSION}/html/synopsis.png
+${PLIST.doc}share/doc/${HS_PLATFORM}/tasty-expected-failure-${PKGVERSION}/html/tasty-expected-failure.haddock
Index: pkgsrc/devel/hs-tasty-expected-failure/buildlink3.mk
diff -u /dev/null pkgsrc/devel/hs-tasty-expected-failure/buildlink3.mk:1.1
--- /dev/null   Fri Jan 31 14:35:08 2025
+++ pkgsrc/devel/hs-tasty-expected-failure/buildlink3.mk        Fri Jan 31 14:35:08 2025
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2025/01/31 14:35:08 pho Exp $
+
+BUILDLINK_TREE+=       hs-tasty-expected-failure
+
+.if !defined(HS_TASTY_EXPECTED_FAILURE_BUILDLINK3_MK)
+HS_TASTY_EXPECTED_FAILURE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-tasty-expected-failure+=      hs-tasty-expected-failure>=0.12.3
+BUILDLINK_ABI_DEPENDS.hs-tasty-expected-failure+=      hs-tasty-expected-failure>=0.12.3
+BUILDLINK_PKGSRCDIR.hs-tasty-expected-failure?=                ../../devel/hs-tasty-expected-failure
+
+.include "../../devel/hs-tagged/buildlink3.mk"
+.include "../../devel/hs-tasty/buildlink3.mk"
+.include "../../devel/hs-unbounded-delays/buildlink3.mk"
+.endif # HS_TASTY_EXPECTED_FAILURE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-tasty-expected-failure
Index: pkgsrc/devel/hs-tasty-expected-failure/distinfo
diff -u /dev/null pkgsrc/devel/hs-tasty-expected-failure/distinfo:1.1
--- /dev/null   Fri Jan 31 14:35:08 2025
+++ pkgsrc/devel/hs-tasty-expected-failure/distinfo     Fri Jan 31 14:35:08 2025
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2025/01/31 14:35:08 pho Exp $
+
+BLAKE2s (tasty-expected-failure-0.12.3.tar.gz) = 882b512de64d65eace0c01bcb65fbddfb57347646374ab8c1e9415e1cdd2622a
+SHA512 (tasty-expected-failure-0.12.3.tar.gz) = 38a38a6b918355b341ac52fbbd63312fbc44f2071785401dc667bb50b030e8c1963c5eb8f890c36daa0987d2fb4748effa543076429e0c8dea58f2fb0bf29f0c
+Size (tasty-expected-failure-0.12.3.tar.gz) = 6016 bytes



Home | Main Index | Thread Index | Old Index