testing/bats: new aport

meta package for bats-{core, file, support, assert}
This commit is contained in:
qaqland 2024-08-05 21:06:07 +08:00 committed by Kevin Daudt
parent 23a5eed7ab
commit 89348e8339
2 changed files with 31 additions and 0 deletions

21
testing/bats/APKBUILD Normal file
View File

@ -0,0 +1,21 @@
# Contributor: qaqland <qaq@qaq.land>
# Maintainer: qaqland <qaq@qaq.land>
pkgname=bats
pkgver=1.11.0
pkgrel=0
pkgdesc="Meta package for Bats"
url="https://bats-core.readthedocs.io/"
arch="noarch"
license="MIT"
depends="
bats-core
bats-support
bats-assert
bats-file
"
install="bats.post-install"
options="!check" # No tests for a metapkg
package() {
mkdir -p "$pkgdir"
}

View File

@ -0,0 +1,10 @@
#!/bin/sh
cat >&2 <<EOF
*
* set BATS_LIB_PATH=/usr/lib/bats before executing `bats_load_library`
*
EOF
exit 0