summaryrefslogtreecommitdiff
path: root/devel/go-check
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2016-01-16 23:56:23 +0000
committerrillig <rillig@pkgsrc.org>2016-01-16 23:56:23 +0000
commitec64179721fd81303f74a21018cf46769cd729a8 (patch)
treefc0450becb05a02020f7c96475773684a8c045a6 /devel/go-check
parentdf415b63bf19e549620db6c6ffec3fd58cb8529f (diff)
downloadpkgsrc-ec64179721fd81303f74a21018cf46769cd729a8.tar.gz
Added go-check version 1
The check package builds on the standard testing library from Go to offer a richer testing framework for libraries and applications to use. gocheck includes features such as: * Helpful error reporting to aid on figuring problems out (see below) * Richer test helpers: assertions which interrupt the test immediately, deep multi-type comparisons, string matching, etc * Suite-based grouping of tests * Fixtures: per suite and/or per test set up and tear down * Benchmarks integrated in the suite logic (with fixtures, etc) * Management of temporary directories * Panic-catching logic, with proper error reporting * Proper counting of successes, failures, panics, missed tests, skips, etc * Explicit test skipping * Support for expected failures * Verbosity flag which disables output caching (helpful to debug hanging tests, for instance) * Multi-line string reporting for more comprehensible failures * Inclusion of comments surrounding checks on failure reports * Fully tested (it manages to test itself reliably)
Diffstat (limited to 'devel/go-check')
-rw-r--r--devel/go-check/DESCR20
-rw-r--r--devel/go-check/Makefile19
-rw-r--r--devel/go-check/PLIST23
-rw-r--r--devel/go-check/buildlink3.mk15
-rw-r--r--devel/go-check/distinfo6
5 files changed, 83 insertions, 0 deletions
diff --git a/devel/go-check/DESCR b/devel/go-check/DESCR
new file mode 100644
index 00000000000..94cbd2263e7
--- /dev/null
+++ b/devel/go-check/DESCR
@@ -0,0 +1,20 @@
+The check package builds on the standard testing library from Go to offer
+a richer testing framework for libraries and applications to use.
+
+gocheck includes features such as:
+* Helpful error reporting to aid on figuring problems out (see below)
+* Richer test helpers: assertions which interrupt the test immediately,
+ deep multi-type comparisons, string matching, etc
+* Suite-based grouping of tests
+* Fixtures: per suite and/or per test set up and tear down
+* Benchmarks integrated in the suite logic (with fixtures, etc)
+* Management of temporary directories
+* Panic-catching logic, with proper error reporting
+* Proper counting of successes, failures, panics, missed tests, skips, etc
+* Explicit test skipping
+* Support for expected failures
+* Verbosity flag which disables output caching (helpful to debug hanging
+ tests, for instance)
+* Multi-line string reporting for more comprehensible failures
+* Inclusion of comments surrounding checks on failure reports
+* Fully tested (it manages to test itself reliably)
diff --git a/devel/go-check/Makefile b/devel/go-check/Makefile
new file mode 100644
index 00000000000..f391bd36128
--- /dev/null
+++ b/devel/go-check/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2016/01/16 23:56:23 rillig Exp $
+#
+
+DISTNAME= go-check-1
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=go-check/}
+GITHUB_PROJECT= check
+GITHUB_TAG= 4f90aea
+
+MAINTAINER= rillig@NetBSD.org
+HOMEPAGE= http://labix.org/gocheck
+COMMENT= Rich testing for the Go language
+LICENSE= 2-clause-bsd
+
+GO_SRCPATH= gopkg.in/check.v1
+GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}*
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/go-check/PLIST b/devel/go-check/PLIST
new file mode 100644
index 00000000000..e9ed611fad1
--- /dev/null
+++ b/devel/go-check/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1 2016/01/16 23:56:23 rillig Exp $
+gopkg/pkg/${GO_PLATFORM}/gopkg.in/check.v1.a
+gopkg/src/gopkg.in/check.v1/LICENSE
+gopkg/src/gopkg.in/check.v1/README.md
+gopkg/src/gopkg.in/check.v1/TODO
+gopkg/src/gopkg.in/check.v1/benchmark.go
+gopkg/src/gopkg.in/check.v1/benchmark_test.go
+gopkg/src/gopkg.in/check.v1/bootstrap_test.go
+gopkg/src/gopkg.in/check.v1/check.go
+gopkg/src/gopkg.in/check.v1/check_test.go
+gopkg/src/gopkg.in/check.v1/checkers.go
+gopkg/src/gopkg.in/check.v1/checkers_test.go
+gopkg/src/gopkg.in/check.v1/export_test.go
+gopkg/src/gopkg.in/check.v1/fixture_test.go
+gopkg/src/gopkg.in/check.v1/foundation_test.go
+gopkg/src/gopkg.in/check.v1/helpers.go
+gopkg/src/gopkg.in/check.v1/helpers_test.go
+gopkg/src/gopkg.in/check.v1/printer.go
+gopkg/src/gopkg.in/check.v1/printer_test.go
+gopkg/src/gopkg.in/check.v1/reporter.go
+gopkg/src/gopkg.in/check.v1/reporter_test.go
+gopkg/src/gopkg.in/check.v1/run.go
+gopkg/src/gopkg.in/check.v1/run_test.go
diff --git a/devel/go-check/buildlink3.mk b/devel/go-check/buildlink3.mk
new file mode 100644
index 00000000000..256f3350e67
--- /dev/null
+++ b/devel/go-check/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/01/16 23:56:23 rillig Exp $
+
+BUILDLINK_TREE+= go-check
+
+.if !defined(GO_CHECK_BUILDLINK3_MK)
+GO_CHECK_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-check= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-check?= build
+
+BUILDLINK_API_DEPENDS.go-check+= go-check>=1
+BUILDLINK_PKGSRCDIR.go-check?= ../../devel/go-check
+.endif # GO_CHECK_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-check
diff --git a/devel/go-check/distinfo b/devel/go-check/distinfo
new file mode 100644
index 00000000000..01f54f7844a
--- /dev/null
+++ b/devel/go-check/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/01/16 23:56:23 rillig Exp $
+
+SHA1 (go-check-1-4f90aea.tar.gz) = 0b6c9098a710289e495f76aee044af76bab4385e
+RMD160 (go-check-1-4f90aea.tar.gz) = 6a5aa83e8fc78bf26ce24d3f9dfa80762b21efbc
+SHA512 (go-check-1-4f90aea.tar.gz) = 5a0b15ce76bcb675b4374ed4670ec02f6c1278afe8509d154367df62cf9af669776775be6969ec6c511379c2f9dda243a28cdddb96bfc3252af7b1f883fc620b
+Size (go-check-1-4f90aea.tar.gz) = 30343 bytes