pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bats-core: update to 1.11.0
Module Name: pkgsrc-wip
Committed By: Iku Iwasa <iquiw%NetBSD.org@localhost>
Pushed By: iquiw
Date: Sat Apr 20 17:19:23 2024 +0900
Changeset: 6395062b794d0d851edc55fb8fc1dcfb49824443
Modified Files:
bats-core/Makefile
bats-core/PLIST
bats-core/distinfo
bats-core/patches/patch-install.sh
Added Files:
bats-core/COMMIT_MSG
Log Message:
bats-core: update to 1.11.0
Added:
* hardened CI scripts by using hashes instead of versions for actions and
restricting permissions
* add security.md
* add codespell CI checks
* dynamic test registration via bats_test_function
* add check that Bats is executed with Bash >= 3.2
Fixed:
* install.sh now works for deviating lib/ dirs (like lib32,lib64)
* catch unset BATS_TEST_SOURCE in lib/bats-core/tracing.bash so
* set -u/set -o nounset works as expected
* fix --gather-test-outputs-in fails on tests with multiple /
* install does not create unused /usr/share/bats anymore
* ensure IFS is unchanged in {setup,teardown}{_suite,_file,}, @test and
free code
* junit formatter: remove ANSI Codes to avoid invalid XML character
Changed:
* update Docker image with the latest bats-file version 0.4.0
* update Docker image with the latest bats-detik version 1.3.0
Documentation
* clarify docker usage
* update Arch Linux package URL in installation.rst
* rename bash-bats to bats for Arch Linux in installation.rst
* fix FAQ entry about setup-/teardown_suite, as they are available now
* added logo
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6395062b794d0d851edc55fb8fc1dcfb49824443
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
bats-core/COMMIT_MSG | 3 +++
bats-core/Makefile | 2 +-
bats-core/PLIST | 1 +
bats-core/distinfo | 8 ++++----
bats-core/patches/patch-install.sh | 8 +++++---
5 files changed, 14 insertions(+), 8 deletions(-)
diffs:
diff --git a/bats-core/COMMIT_MSG b/bats-core/COMMIT_MSG
new file mode 100644
index 0000000000..709450b99a
--- /dev/null
+++ b/bats-core/COMMIT_MSG
@@ -0,0 +1,3 @@
+devel/bats-core: import bats-core version 1.11.0
+
+Packaged in wip by iquiw
diff --git a/bats-core/Makefile b/bats-core/Makefile
index cfdab46ebf..408e9e5fbe 100644
--- a/bats-core/Makefile
+++ b/bats-core/Makefile
@@ -1,6 +1,6 @@
# $NetBSD$
-DISTNAME= bats-core-1.10.0
+DISTNAME= bats-core-1.11.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=bats-core/}
GITHUB_TAG= v${PKGVERSION_NOREV}
diff --git a/bats-core/PLIST b/bats-core/PLIST
index 950f93090a..c1d2a0822a 100644
--- a/bats-core/PLIST
+++ b/bats-core/PLIST
@@ -17,6 +17,7 @@ libexec/bats-core/bats-format-junit
libexec/bats-core/bats-format-pretty
libexec/bats-core/bats-format-tap
libexec/bats-core/bats-format-tap13
+libexec/bats-core/bats-gather-tests
libexec/bats-core/bats-preprocess
man/man1/bats.1
man/man7/bats.7
diff --git a/bats-core/distinfo b/bats-core/distinfo
index e352549157..b3e8b122ea 100644
--- a/bats-core/distinfo
+++ b/bats-core/distinfo
@@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.2 2016/09/08 14:34:02 jperkin Exp $
-BLAKE2s (bats-core-1.10.0.tar.gz) = 209c6fb8ae2292d6848bda4c66da3ad35ec3ee35b93ea513e4e28b5bfd18499c
-SHA512 (bats-core-1.10.0.tar.gz) = 31d98e26ff79354e8afd8eba2b19b1ca15ea4f1fbd16ad3936572688f49b33d68d38b6410c794f672572ee72cb535b11901759db67d4fa5656be2d0f6e050a99
-Size (bats-core-1.10.0.tar.gz) = 159353 bytes
-SHA1 (patch-install.sh) = 482b34ba79587a54220567bc4e104c7071aab1de
+BLAKE2s (bats-core-1.11.0.tar.gz) = 1bdfac6d714ab948648c74d6998ca2e5cfc78376ea2c22ae31bec5e9e41dc3b6
+SHA512 (bats-core-1.11.0.tar.gz) = 8f8dc767ba2d1551288942b50fdc73ef1f31e4dd1c6d7d539968454d286fff6509ed85d8728b4779d9b085e265ddf77e89a8cd8746f3afab0c7c3542eeacbd51
+Size (bats-core-1.11.0.tar.gz) = 172044 bytes
+SHA1 (patch-install.sh) = 2080e143b70524dc745d4f7301290acf84dde824
SHA1 (patch-libexec_bats-core_bats) = ba322d4d3085030a07f6683e692ab26573d8a98d
SHA1 (patch-test_install.bats) = 669253c1cf8fa3e8a76f132e6da21ab7e8e79844
diff --git a/bats-core/patches/patch-install.sh b/bats-core/patches/patch-install.sh
index af5bc20b69..c33f8dae1d 100644
--- a/bats-core/patches/patch-install.sh
+++ b/bats-core/patches/patch-install.sh
@@ -2,14 +2,15 @@ $NetBSD$
Change manpages installation directory.
---- install.sh.orig 2021-10-22 08:06:36.000000000 +0000
+--- install.sh.orig 2024-03-24 15:01:17.000000000 +0000
+++ install.sh
-@@ -13,11 +13,11 @@ if [[ -z "$PREFIX" ]]; then
+@@ -14,13 +14,13 @@ if [[ -z "$PREFIX" ]]; then
exit 1
fi
-install -d -m 755 "$PREFIX"/{bin,libexec/bats-core,"${LIBDIR}"/bats-core,share/man/man{1,7}}
+install -d -m 755 "$PREFIX"/{bin,libexec/bats-core,"${LIBDIR}"/bats-core,"$PKGMANDIR"/man{1,7}}
+
install -m 755 "$BATS_ROOT/bin"/* "$PREFIX/bin"
install -m 755 "$BATS_ROOT/libexec/bats-core"/* "$PREFIX/libexec/bats-core"
install -m 755 "$BATS_ROOT/lib/bats-core"/* "$PREFIX/${LIBDIR}/bats-core"
@@ -18,4 +19,5 @@ Change manpages installation directory.
+install -m 644 "$BATS_ROOT/man/bats.1" "$PREFIX/$PKGMANDIR/man1"
+install -m 644 "$BATS_ROOT/man/bats.7" "$PREFIX/$PKGMANDIR/man7"
- echo "Installed Bats to $PREFIX/bin/bats"
+ read -rd '' BATS_EXE_CONTENTS <"$PREFIX/bin/bats" || true
+ BATS_EXE_CONTENTS=${BATS_EXE_CONTENTS/"BATS_BASE_LIBDIR=lib"/"BATS_BASE_LIBDIR=${LIBDIR}"}
Home |
Main Index |
Thread Index |
Old Index