pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/shellspec
Module Name: pkgsrc
Committed By: schmonz
Date: Tue Feb 14 21:26:29 UTC 2023
Added Files:
pkgsrc/devel/shellspec: DESCR Makefile PLIST distinfo
pkgsrc/devel/shellspec/patches: patch-Makefile
Log Message:
Add shellspec, a full-featured BDD unit testing framework for POSIX shells.
ShellSpec is a unit testing framework for dash, bash, ksh, zsh and all
POSIX shells that provides first-class features such as code coverage,
mocking, parameterized test, parallel execution and more. It was
developed as a dev/test tool for cross-platform shell scripts and shell
script libraries. ShellSpec is a new modern testing framework released
in 2019, but it's already stable enough. With lots of practical CLI
features and simple yet powerful syntax, it provides you with a fun
shell script test environment.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/shellspec/DESCR \
pkgsrc/devel/shellspec/Makefile pkgsrc/devel/shellspec/PLIST \
pkgsrc/devel/shellspec/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/shellspec/patches/patch-Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/shellspec/DESCR
diff -u /dev/null pkgsrc/devel/shellspec/DESCR:1.1
--- /dev/null Tue Feb 14 21:26:29 2023
+++ pkgsrc/devel/shellspec/DESCR Tue Feb 14 21:26:29 2023
@@ -0,0 +1,8 @@
+ShellSpec is a full-featured BDD unit testing framework for dash, bash,
+ksh, zsh and all POSIX shells that provides first-class features such as
+code coverage, mocking, parameterized test, parallel execution and more.
+It was developed as a dev/test tool for cross-platform shell scripts and
+shell script libraries. ShellSpec is a new modern testing framework
+released in 2019, but it's already stable enough. With lots of practical
+CLI features and simple yet powerful syntax, it provides you with a fun
+shell script test environment.
Index: pkgsrc/devel/shellspec/Makefile
diff -u /dev/null pkgsrc/devel/shellspec/Makefile:1.1
--- /dev/null Tue Feb 14 21:26:29 2023
+++ pkgsrc/devel/shellspec/Makefile Tue Feb 14 21:26:29 2023
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2023/02/14 21:26:29 schmonz Exp $
+
+DISTNAME= shellspec-0.28.1
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=shellspec/}
+GITHUB_TAG= ${PKGVERSION_NOREV}
+
+MAINTAINER= schmonz%NetBSD.org@localhost
+HOMEPAGE= https://github.com/shellspec/shellspec/
+COMMENT= Full-featured BDD unit testing for POSIX shells
+LICENSE= mit
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= do-configure
+SUBST_FILES.paths= Makefile
+SUBST_VARS.paths= PREFIX DESTDIR
+
+NO_BUILD= yes
+INSTALL_ENV+= PREFIX=${DESTDIR:Q}${PREFIX:Q}
+TEST_TARGET= test
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/shellspec/PLIST
diff -u /dev/null pkgsrc/devel/shellspec/PLIST:1.1
--- /dev/null Tue Feb 14 21:26:29 2023
+++ pkgsrc/devel/shellspec/PLIST Tue Feb 14 21:26:29 2023
@@ -0,0 +1,114 @@
+@comment $NetBSD: PLIST,v 1.1 2023/02/14 21:26:29 schmonz Exp $
+bin/shellspec
+lib/shellspec/LICENSE
+lib/shellspec/lib/bootstrap.sh
+lib/shellspec/lib/core/clone.sh
+lib/shellspec/lib/core/core.sh
+lib/shellspec/lib/core/dsl.sh
+lib/shellspec/lib/core/evaluation.sh
+lib/shellspec/lib/core/hook.sh
+lib/shellspec/lib/core/matchers.sh
+lib/shellspec/lib/core/matchers/be.sh
+lib/shellspec/lib/core/matchers/be/empty.sh
+lib/shellspec/lib/core/matchers/be/stat.sh
+lib/shellspec/lib/core/matchers/be/status.sh
+lib/shellspec/lib/core/matchers/be/successful.sh
+lib/shellspec/lib/core/matchers/be/valid.sh
+lib/shellspec/lib/core/matchers/be/variable.sh
+lib/shellspec/lib/core/matchers/end_with.sh
+lib/shellspec/lib/core/matchers/equal.sh
+lib/shellspec/lib/core/matchers/has.sh
+lib/shellspec/lib/core/matchers/has/stat.sh
+lib/shellspec/lib/core/matchers/include.sh
+lib/shellspec/lib/core/matchers/match.sh
+lib/shellspec/lib/core/matchers/satisfy.sh
+lib/shellspec/lib/core/matchers/start_with.sh
+lib/shellspec/lib/core/modifiers.sh
+lib/shellspec/lib/core/modifiers/contents.sh
+lib/shellspec/lib/core/modifiers/length.sh
+lib/shellspec/lib/core/modifiers/line.sh
+lib/shellspec/lib/core/modifiers/lines.sh
+lib/shellspec/lib/core/modifiers/result.sh
+lib/shellspec/lib/core/modifiers/word.sh
+lib/shellspec/lib/core/output.sh
+lib/shellspec/lib/core/outputs.sh
+lib/shellspec/lib/core/statement.sh
+lib/shellspec/lib/core/subjects.sh
+lib/shellspec/lib/core/subjects/line.sh
+lib/shellspec/lib/core/subjects/path.sh
+lib/shellspec/lib/core/subjects/status.sh
+lib/shellspec/lib/core/subjects/stderr.sh
+lib/shellspec/lib/core/subjects/stdout.sh
+lib/shellspec/lib/core/subjects/value.sh
+lib/shellspec/lib/core/subjects/variable.sh
+lib/shellspec/lib/core/subjects/word.sh
+lib/shellspec/lib/core/switch.sh
+lib/shellspec/lib/core/syntax.sh
+lib/shellspec/lib/core/utils.sh
+lib/shellspec/lib/core/verb.sh
+lib/shellspec/lib/cov/kcov.sh
+lib/shellspec/lib/cov/kcov/.bashenv
+lib/shellspec/lib/cov/kcov/.kshenv
+lib/shellspec/lib/cov/kcov/.zshenv
+lib/shellspec/lib/ext/ext.sh
+lib/shellspec/lib/general.sh
+lib/shellspec/lib/getoptions.sh
+lib/shellspec/lib/getoptions_abbr.sh
+lib/shellspec/lib/getoptions_help.sh
+lib/shellspec/lib/libexec.sh
+lib/shellspec/lib/libexec/binary.sh
+lib/shellspec/lib/libexec/executor.sh
+lib/shellspec/lib/libexec/grammar.sh
+lib/shellspec/lib/libexec/grammar/blocks
+lib/shellspec/lib/libexec/grammar/directives
+lib/shellspec/lib/libexec/grammar/dsls
+lib/shellspec/lib/libexec/kcov-executor.sh
+lib/shellspec/lib/libexec/list.sh
+lib/shellspec/lib/libexec/optparser/optparser.sh
+lib/shellspec/lib/libexec/optparser/parser_definition.sh
+lib/shellspec/lib/libexec/optparser/parser_definition_generated.sh
+lib/shellspec/lib/libexec/parallel-executor.sh
+lib/shellspec/lib/libexec/prechecker.sh
+lib/shellspec/lib/libexec/reporter.sh
+lib/shellspec/lib/libexec/reporter/color_schema.sh
+lib/shellspec/lib/libexec/reporter/conclusion_formatter.sh
+lib/shellspec/lib/libexec/reporter/debug_formatter.sh
+lib/shellspec/lib/libexec/reporter/documentation_formatter.sh
+lib/shellspec/lib/libexec/reporter/failures_formatter.sh
+lib/shellspec/lib/libexec/reporter/finished_formatter.sh
+lib/shellspec/lib/libexec/reporter/formatter.sh
+lib/shellspec/lib/libexec/reporter/junit_formatter.sh
+lib/shellspec/lib/libexec/reporter/kcov_formatter.sh
+lib/shellspec/lib/libexec/reporter/methods_formatter.sh
+lib/shellspec/lib/libexec/reporter/null_formatter.sh
+lib/shellspec/lib/libexec/reporter/profiler_formatter.sh
+lib/shellspec/lib/libexec/reporter/progress_formatter.sh
+lib/shellspec/lib/libexec/reporter/references_formatter.sh
+lib/shellspec/lib/libexec/reporter/summary_formatter.sh
+lib/shellspec/lib/libexec/reporter/tap_formatter.sh
+lib/shellspec/lib/libexec/reporter/trace_formatter.sh
+lib/shellspec/lib/libexec/runner.sh
+lib/shellspec/lib/libexec/serial-executor.sh
+lib/shellspec/lib/libexec/shellspec.sh
+lib/shellspec/lib/libexec/task.sh
+lib/shellspec/lib/libexec/translator.sh
+lib/shellspec/lib/semver.sh
+lib/shellspec/lib/support-bin.sh
+lib/shellspec/libexec/shellspec-executor.sh
+lib/shellspec/libexec/shellspec-gen-bin.sh
+lib/shellspec/libexec/shellspec-init.sh
+lib/shellspec/libexec/shellspec-inspection-readonly.sh
+lib/shellspec/libexec/shellspec-inspection.sh
+lib/shellspec/libexec/shellspec-list.sh
+lib/shellspec/libexec/shellspec-load-env.sh
+lib/shellspec/libexec/shellspec-prechecker.sh
+lib/shellspec/libexec/shellspec-profiler.sh
+lib/shellspec/libexec/shellspec-reporter.sh
+lib/shellspec/libexec/shellspec-runner.sh
+lib/shellspec/libexec/shellspec-shebang
+lib/shellspec/libexec/shellspec-syntax-check.sh
+lib/shellspec/libexec/shellspec-task.sh
+lib/shellspec/libexec/shellspec-time.sh
+lib/shellspec/libexec/shellspec-translate.sh
+lib/shellspec/libexec/shellspec-unreadonly-path.sh
+lib/shellspec/shellspec
Index: pkgsrc/devel/shellspec/distinfo
diff -u /dev/null pkgsrc/devel/shellspec/distinfo:1.1
--- /dev/null Tue Feb 14 21:26:29 2023
+++ pkgsrc/devel/shellspec/distinfo Tue Feb 14 21:26:29 2023
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2023/02/14 21:26:29 schmonz Exp $
+
+BLAKE2s (shellspec-0.28.1.tar.gz) = f06188ae7896982cb2ce3a1e8bd33539950224326c80d49a36cef679c32901e5
+SHA512 (shellspec-0.28.1.tar.gz) = a3d1f582a3c76ef240ab9bd0ce3b8433d7ced766b6fa03ed724100917271c2c0ee04909cdc7ea2f92267dc11fdd890d52a4edcc2957c16dbbd331a718e5c564f
+Size (shellspec-0.28.1.tar.gz) = 440575 bytes
+SHA1 (patch-Makefile) = 38b3123b2b3ee0ae021bd2eab4ccd6b0e5514ffd
Index: pkgsrc/devel/shellspec/patches/patch-Makefile
diff -u /dev/null pkgsrc/devel/shellspec/patches/patch-Makefile:1.1
--- /dev/null Tue Feb 14 21:26:29 2023
+++ pkgsrc/devel/shellspec/patches/patch-Makefile Tue Feb 14 21:26:29 2023
@@ -0,0 +1,16 @@
+$NetBSD: patch-Makefile,v 1.1 2023/02/14 21:26:29 schmonz Exp $
+
+Install to DESTDIR.
+
+--- Makefile.orig 2021-01-11 05:25:23.000000000 +0000
++++ Makefile
+@@ -1,6 +1,6 @@
+-PREFIX ?= /usr/local
+-BINDIR := $(PREFIX)/bin
+-LIBDIR := $(PREFIX)/lib
++PREFIX ?= @PREFIX@
++BINDIR := $(DESTDIR)$(PREFIX)/bin
++LIBDIR := $(DESTDIR)$(PREFIX)/lib
+
+ GETOPTIONSCLI := getoptions-cli --indent=2 --shellcheck
+ OPTPARSERDIR := lib/libexec/optparser
Home |
Main Index |
Thread Index |
Old Index