Commit a24d9429 authored by Jakub Jirutka's avatar Jakub Jirutka
Browse files

testing/lua-brieflz: run tests

parent a2350915
......@@ -3,16 +3,22 @@
pkgname=lua-brieflz
_pkgname=brieflz.lua
pkgver=0.1.0
pkgrel=0
pkgrel=1
pkgdesc="Lua binding for BriefLZ compression library"
url="https://github.com/jirutka/brieflz.lua"
arch="all"
license="MIT"
checkdepends="lua-basexx lua-busted moonscript"
makedepends=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/jirutka/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # XXX: missing moonscript pkg
# luajit is not available for s390x
case "$CARCH" in
s390x) _luajit="";;
*) checkdepends="$checkdepends luajit" _luajit="jit";;
esac
_luaversions="5.1 5.2 5.3"
for _v in $_luaversions; do
......@@ -35,6 +41,17 @@ build() {
done
}
check() {
cd "$builddir"
local lver; for lver in $_luaversions $_luajit; do
msg "Testing on lua$lver"
ln -sf build/lib/lua/${lver/jit/5.1}/brieflz.so .
lua$lver /usr/bin/busted
done
}
package() {
mkdir -p "$pkgdir"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment