aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIztok Fister Jr <iztok@iztok-jr-fister.eu>2022-07-05 09:00:04 +0000
committeralice <alice@ayaya.dev>2022-07-05 18:02:15 +0000
commit4e9a4512085c76face29e14c375af32defacbfe8 (patch)
treef80253e31c7f18212c8cad01ce276b986d20b6e4
parent4c0c16c8f6fb1d6b7709d3b759806d8fa51d7352 (diff)
downloadaports-4e9a4512085c76face29e14c375af32defacbfe8.tar.gz
aports-4e9a4512085c76face29e14c375af32defacbfe8.tar.bz2
aports-4e9a4512085c76face29e14c375af32defacbfe8.tar.xz
testing/ruby-ast-tdl: enable tests
-rw-r--r--testing/ruby-ast-tdl/APKBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/ruby-ast-tdl/APKBUILD b/testing/ruby-ast-tdl/APKBUILD
index ebbc7ff381..7c7cf46705 100644
--- a/testing/ruby-ast-tdl/APKBUILD
+++ b/testing/ruby-ast-tdl/APKBUILD
@@ -3,13 +3,13 @@
pkgname=ruby-ast-tdl
_gemname=${pkgname#ruby-}
pkgver=0.0.4
-pkgrel=0
+pkgrel=1
pkgdesc="Training Description Language for Artificial Sport Trainer"
url="https://github.com/firefly-cpp/ast-tdl"
arch="noarch"
license="MIT"
depends="ruby"
-options="!check" # no tests in current release
+checkdepends="ruby-minitest"
source="$pkgname-$pkgver.tar.gz::https://github.com/firefly-cpp/$_gemname/archive/$pkgver/$_gemname-$pkgver.tar.gz"
builddir="$srcdir/$_gemname-$pkgver"
@@ -17,6 +17,10 @@ build() {
gem build $_gemname.gemspec
}
+check() {
+ ruby test/test_ast_tdl.rb
+}
+
package() {
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"