From 485f4b832a8b35bb930741a12028f4081d285a1c Mon Sep 17 00:00:00 2001 From: openKylinBot Date: Tue, 7 May 2024 15:13:58 +0800 Subject: [PATCH] Import Debian changes 1.10.0-ok1 bats (1.10.0-ok1) nile; urgency=medium * Build for openKylin. --- debian/changelog | 5 +++++ debian/control | 22 ++++++++++++++++++++ debian/copyright | 32 ++++++++++++++++++++++++++++++ debian/docs | 1 + debian/gbp.conf | 4 ++++ debian/lintian-overrides | 4 ++++ debian/rules | 21 ++++++++++++++++++++ debian/salsa-ci.yml | 3 +++ debian/source/format | 1 + debian/tests/control | 3 +++ debian/tests/test-with-system-bats | 15 ++++++++++++++ debian/watch | 4 ++++ 12 files changed, 115 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/gbp.conf create mode 100644 debian/lintian-overrides create mode 100755 debian/rules create mode 100644 debian/salsa-ci.yml create mode 100644 debian/source/format create mode 100644 debian/tests/control create mode 100755 debian/tests/test-with-system-bats create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a680d0d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +bats (1.10.0-ok1) nile; urgency=medium + + * Build for openKylin. + + -- openKylinBot Tue, 07 May 2024 15:13:58 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..76d24b4 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: bats +Section: devel +Priority: optional +Maintainer: openKylin Developers +Uploaders: Yaroslav Halchenko , Gioele Barabucci +Build-Depends: debhelper-compat (= 12), parallel +Standards-Version: 4.6.2 +Homepage: https://github.com/bats-core/bats-core +Vcs-Git: https://salsa.debian.org/bats-team/bats.git +Vcs-Browser: https://salsa.debian.org/bats-team/bats +Rules-Requires-Root: no + +Package: bats +Architecture: all +Depends: ${misc:Depends} +Recommends: parallel +Multi-Arch: foreign +Description: bash automated testing system + Bats is a TAP-compliant testing framework for Bash. It provides a + simple way to verify that the UNIX programs you write behave as + expected. Bats is most useful when testing software written in Bash, + but you can use it to test any UNIX program. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c16a2ce --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: bats +Source: https://github.com/bats-core/bats-core + +Files: * +Copyright: 2011-2016 Sam Stephenson + 2017-2022 bats-core contributors +License: MIT + +Files: debian/* +Copyright: 2014 Yaroslav Halchenko + 2022 Gioele Barabucci +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..f2c0672 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +upstream-branch = upstream/latest +upstream-tag = v%(version)s +debian-branch = debian/latest diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..c873332 --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1,4 @@ +# Reported upstream: https://github.com/bats-core/bats-core/issues/666 +bats: acute-accent-in-manual-page [usr/share/man/man1/bats.1.gz:*] +# Reported upstream: https://github.com/bats-core/bats-core/issues/666 +bats: acute-accent-in-manual-page [usr/share/man/man7/bats.7.gz:*] diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d04022a --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#DH_VERBOSE = 1 + +export HOME=$(shell mktemp -d) + +# main packaging script based on dh7 syntax +%: + dh $@ + +override_dh_clean: + dh_clean + rm -f test/.bats/run-logs/*.log + +override_dh_auto_install: + ./install.sh debian/bats/usr + +override_dh_auto_test: + mkdir -p ~/.parallel && touch ~/.parallel/will-cite + LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8 TERM=dumb bin/bats --tap test diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..8424db4 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,3 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..08ce677 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: + test-with-system-bats, +Depends: @, parallel diff --git a/debian/tests/test-with-system-bats b/debian/tests/test-with-system-bats new file mode 100755 index 0000000..0179ee0 --- /dev/null +++ b/debian/tests/test-with-system-bats @@ -0,0 +1,15 @@ +#!/bin/sh + +set -eu + +export LC_ALL=C.UTF-8 +export LANGUAGE=C.UTF-8 + +FIXTURE_ROOT="test/fixtures" +export FIXTURE_ROOT + +# Exclude `root.bats`: the tests assume being run with the local `bats`. +test_files=$(find test -maxdepth 1 -name '*.bats' | sort | grep -v 'root.bats') + +mkdir -p ~/.parallel && touch ~/.parallel/will-cite +TERM=dumb /usr/bin/bats $test_files diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..deb5839 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts="filenamemangle=s%(?:.*?)?v?@ANY_VERSION@(@ARCHIVE_EXT@)%@PACKAGE@-$1$2%" \ + https://github.com/bats-core/bats-core/tags \ + (?:.*?/)v?@ANY_VERSION@@ARCHIVE_EXT@